This week I want to follow Diego's example to make an interface with two buttons. I have coded in python before but never made an interface in python.
interface py fileI wrote the arduino code and tested with a nano but keep getting an error about not compiling. Bad executable. I researched online and there were no solutions that fixed me problem. So I will continue to debug. My goal is to read potentiometer data and output into an interface to display a digital meter for my final project.
So the reason I had the error was because I was running an old version of arduino. I have two arduino IDE's, one 1.8.8 and the other 1.8.10. I ran the same code on the newer IDE and I no longer got the error. Here is the arduino code.
Arduino CodeI then ran the python file using python3 and it did not work. I went to look at Diego's sample code and I realized I was missing the last line. "root.mainloop()". After fixing that and also getting the right serial port-because I did not have the full port name last time-the code compiled with no errors and THE INTERFACE WORKS!. I went back and changed the BLUE LED name to GREEN to match my setup.
interface py fileI also want to make an android app. I want to send ESP-32 data over bluetooth to the app to tell you data about your shot including release speed, angle, and time. I do not think it shoudl be fairly hard using either android studio or AppInventor.