![]() ![]() # define SERVO_PIN 9 // Pin where is connected the servo # define LARGE_TUNE 50 // large pulse on servo # define NORMAL_TUNE 15 // regular pulse on servo # define FINE_TUNE 5 // short pulse on servo Define pulse width modulation for fine, regular and large tune The pieces of code below illustrate the configuration on Android Application (Java) and Arduino (C / C ++) that can be adjusted by you according your servo and capacitor specification. Important parts of the Arduino and Android code The Arduino and Android Application source code are docummented as shown below. You might need to change some configurations depending on servo specification and kind of capacitor you are using. More about the Android Application and Arduino source codeĪll source code can be found here. ![]() You have to pair the bluetooth before by using system interface.īluetooth paired and ready to send commands to Arduino circuit. Android Remote Controll - Photo 1Ĭonnecting to Bluetooth you should press the Bluetooth button and select the paired Bluetooth, in this case it is HC07. You also might need to check your servo specification and change the BluetoothTuner.java (see comments in the java program). Probable, you will need to do some adjust on your IDE environment to build this application. The last Android Studio used to build it was 3.3.2 (2019). The version of Android Application used here was built in 2014. See ArduinoTwoCapacitor.ino sketch source code documentation. You might need to change some definitions on the Arduino sketch. The fine tune capacitor should have low capacitance. The photo below shows the Android, Bluetooth and two Servos setup for two capacitors. See ArduinoOneCapacitor.ino sketch source code documentation. You might need to change some definition on the Arduino sketch. The photo below shows the Android, Bluetooth and Servo setup for one capacitor version. Bluetooth HC-05 - Photo 1Īrduino circuit built on protoboard One Capacitor version I did not get success with BLE standard and the Android Application developed for this project. You can use the HC-05 or HC-07 bluetooth shield. You will find documentation on ArduinoOneCapacitor.ino, ArduinoTwoCapacitors.ino and BluetoothTuner.java to do that if necessary. You might need change some defined constants on Android Application and Arduino sketch. It is recommended that you check your servo parameters (specifications). There is a checkbox on the Android Application that you can select one or two capacitors setup. The same Android Application used to control the One capacitor version can be used to control the two capacitors version. The fine tune servo should be attached to a low capacitance capacitor. The main servo should be attached to a "high" capacitance capacitor. The tune and fine tune commands are applied to only one capacitor. This setup can be used with Alexloop antenna tuner or similar. There is also a version that use a BLE (Bluetooth Low Energy). You might need change parameters or adapt it for your needs. See ArduinoOneCapacitor.ino, ArduinoTwoCapacitors.ino and BluetoothTuner.java code documentation. The bluetooth shield have to be desconected during the sketch upload process. sources folder has the Android Magnetic Antenna Tunner Application to control the servo attached to a capacitor via bluetooth connection, and the Arduino sketch that implements the contrrol the capacitor (Servo).Īll Arduino and Android Application codes are avaiable on Sources folder.schematic folder has the schematic document build by fritzing software, an open-source hardware initiative that allows us to design electronics circuits.images folder has some pictures about this project.Click here to see a video that shows the box example project with the Android and Arduino Antenna Tuner. It can be used to build a tuner box by using a 3D printer. Box_3D_Printer folder is about a box project to use with this project of antenna tuner on Alexloop Magnetic loop antenna or similar.I think it can be improved and adjusted for your needs. This project is about a minimalist version of a Remote Control for Magnetic Loop Antenna controlled by Arduino and Android via Bluetooth. Messages received by Arduino via Bluetooth.More about the Android Application and Arduino source code.Magnetic Loop Antenna controlled by Android and ArduinoĬlique aqui para Documentação em Português Table of contents
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |