top of page

LESSONS LEARNED

  • The main thing I learned throughout this project was how to utilize blink, its widgets and its libraries. 

  • Another thing I learned through this project was how code in python with the utilization of blynk libraries.

  • Yet another thing I learned was that python libraries can be very finicky.

RASPBERRY PI BREAKDOWN

RP.PNG
GPIO-Pinout-Diagram-2.png

SETTING UP BLYNK

      Creating New Project                                     Getting Authentication Token                                    Authentication Token  

IMG_0427.PNG
IMG_0428.PNG
IMG_0430.PNG

'BLYNKLIB ERROR'

During the testing phase of this assignment I quickly ran into an issue with the python coding and the installed Blynk libraries. Calling/importing 'blynklib' for code such as the LED switch resulted in the following error.

 

Error: "ModuleNotFoundError: No module named 'blynklib'"

Listed below are all the things I attempted and all the websites in which I followed recommendations on how to fix this issue. (None of which fixed the issue)

 

Described below is what fixed this issue.

What resolved the issue was completely wiping a micro SD and redownloading the Raspberry Pi OS for a second time. After redownloading the OS I updated and upgraded the full system of the Raspberry Pi and reinstalled all the necessary applications and libraries. Following these steps fixed the issue and I was able to run the code from the terminal, however, running the code from the Thonny application still results in this error.

I found that slightly altering the install command for "blynklib" resolved all issues. Running the command "sudo pip3 install blynklib" in the terminal instead of just "sudo pip install blynklib" fixed my Thonny error, and now the code can be run from Thonny as well as the Terminal.

LED CONTROL W/ BLYNK

BLYNK SETUP

IMG_0489.PNG
IMG_0488.PNG

SCHEMATIC

LEDblynk.JPG

CIRCUIT

IMG_0487.jpg

CODE

blynkledcode.JPG

VIDEO

LIVE CAMERA W/ BLYNK

BLYNK SETUP

IMG_0485.PNG
IMG_0490.PNG

PHYSICAL SETUP

IMG_0491.jpg

CODE

blynkcameracode.JPG
blynkcameracode2.JPG

VIDEO

SERVO CONTROL W/ BLYNK

BLYNK SETUP

IMG_0493.PNG
IMG_0492.PNG

SCHEMATIC

servoblynk.JPG

CIRCUIT

IMG_0494.jpg

CODE

servoblynkcode.JPG

VIDEO

ULTRASONIC SENSOR W/ BLYNK

BLYNK SETUP

IMG_0502.PNG
IMG_0501.PNG

SCHEMATIC

USschem.JPG

CIRCUIT

IMG_0500.jpg

CODE

UScode.JPG

VIDEO

SOURCES

© 2023 by Joseph Petite. Proudly created with Wix.com

bottom of page