Calculator using raspberry pi pico disconnected from computer

Поделиться
HTML-код
  • Опубликовано: 23 янв 2025
  • Hello everyone, this is the 5th version of my calculator. This is the same calculator with the 2 character 7 segment LED display and 16 key keypad shown previously but it has an improvement. This calculator can operate while disconnected from the computer. In order to accomplish this, I had to do 2 things. First, I had to supply external power because I disconnected the USB. I connected 3.3V to physical pin 39 and ground to physical pin 38. Secondly, I connected a button between the run pin (physical pin 30) and ground. HItting the button pulls pin 30 to ground and is the equivalent to hitting F5 in Thonny (i.e. run the program). Also, I had to change the file name to main.py. Here is an example. Note how the USB cable is not connected to the raspberry pi. First, I hit the start button. Then, I perform the calculation. 22+15=37. I then click the button to run the code again. 84/21 = 4.

Комментарии •