I want to build a robotic arm for my international course, but this time I want to make my project more reachable compared to my last semester idea. I want it to be controlled by buttons or joysticks before thinking to upgrade it if I can.
I picked up a Rasberry pi at L'Atelier to get familiar with it because it is the first time I use one. I firstly wanted to program in C++ but I really suck at programming so I thought Python was the best language to start. With Python, someone recommend me Thonny as an IDE so I downloaded it then set up the Rasberry pi on the App.
My first objective was to light a LED only with my computer just to familiarize myself with the link between Python and the Rasberry. I then worked with buttons, a buzzer and a servo (SG90).
I worked a little bit every day to be able to control the servo with 2 push buttons and this is the code I used :