Introduction - LED Modules - ArduinoRaspberry Pi Pin Mapping . LED Module and Raspberry Pi Wiring ....
Transcript of Introduction - LED Modules - ArduinoRaspberry Pi Pin Mapping . LED Module and Raspberry Pi Wiring ....
![Page 1: Introduction - LED Modules - ArduinoRaspberry Pi Pin Mapping . LED Module and Raspberry Pi Wiring . Python Code We first want to create a blank python script we will edit in the Thonny](https://reader033.fdocuments.us/reader033/viewer/2022053010/5f0d49ac7e708231d4399a0d/html5/thumbnails/1.jpg)
Introduction - LED Modules The OSEPP LED Modules are a various colored LEDs that eliminate the need to assemble various components, creating a “plug and play” setup. (more info: https://osepp.com/electronic-modules/sensor-modules/68-led-modules)
All of these modules are 100% Arduino and Raspberry Pi compatible.
Specifications • 100% Arduino Compatible • Operating voltage input : 3.3-5V (regulated) • Digital/pulse width modulation output • 25 mA operating voltage rating
![Page 2: Introduction - LED Modules - ArduinoRaspberry Pi Pin Mapping . LED Module and Raspberry Pi Wiring . Python Code We first want to create a blank python script we will edit in the Thonny](https://reader033.fdocuments.us/reader033/viewer/2022053010/5f0d49ac7e708231d4399a0d/html5/thumbnails/2.jpg)
Lesson 1 - Blink LED Module with Arduino
Materials List • LED Module (https://osepp.com/electronic-modules/sensor-modules/68-led-
modules) • OSEPP UNO R4 Board (https://osepp.com/electronic-modules/microcontroller-
boards/5-uno-r4-plus-5) • M/F Jumper Cables (https://osepp.com/accessories/cables/20-6-m-f-premium-
jumper-wires) • Arduino software for your particular OS (Mac, Windows, Linux): https://
www.arduino.cc/en/Main/Software
Wiring
![Page 3: Introduction - LED Modules - ArduinoRaspberry Pi Pin Mapping . LED Module and Raspberry Pi Wiring . Python Code We first want to create a blank python script we will edit in the Thonny](https://reader033.fdocuments.us/reader033/viewer/2022053010/5f0d49ac7e708231d4399a0d/html5/thumbnails/3.jpg)
Arduino Code
![Page 4: Introduction - LED Modules - ArduinoRaspberry Pi Pin Mapping . LED Module and Raspberry Pi Wiring . Python Code We first want to create a blank python script we will edit in the Thonny](https://reader033.fdocuments.us/reader033/viewer/2022053010/5f0d49ac7e708231d4399a0d/html5/thumbnails/4.jpg)
Connect your Arduino to your computer after installing the software. select the correct board and serial port from the “Tools” menu inside the Arduino program. You will see the correctly selected board and serial port at the bottom right corner of the program:
Press the “upload” button to upload the blink program to your Arduino board. You will see your LED Module blink on for half a second, then blink off for another half a second repeatedly.
![Page 5: Introduction - LED Modules - ArduinoRaspberry Pi Pin Mapping . LED Module and Raspberry Pi Wiring . Python Code We first want to create a blank python script we will edit in the Thonny](https://reader033.fdocuments.us/reader033/viewer/2022053010/5f0d49ac7e708231d4399a0d/html5/thumbnails/5.jpg)
Lesson 2: Blink LED Module with Raspberry Pi
Materials • Raspberry Pi 3 or Raspberry Pi Zero (https://www.raspberrypi.org/products/)
• LED Module (https://osepp.com/electronic-modules/sensor-modules/68-led-modules)
• F/F Jumper Cables (https://www.osepp.com/accessories/cables/18-6-f-f-premium-jumper-wires)
Raspberry Pi Pin Mapping
![Page 6: Introduction - LED Modules - ArduinoRaspberry Pi Pin Mapping . LED Module and Raspberry Pi Wiring . Python Code We first want to create a blank python script we will edit in the Thonny](https://reader033.fdocuments.us/reader033/viewer/2022053010/5f0d49ac7e708231d4399a0d/html5/thumbnails/6.jpg)
LED Module and Raspberry Pi Wiring
![Page 7: Introduction - LED Modules - ArduinoRaspberry Pi Pin Mapping . LED Module and Raspberry Pi Wiring . Python Code We first want to create a blank python script we will edit in the Thonny](https://reader033.fdocuments.us/reader033/viewer/2022053010/5f0d49ac7e708231d4399a0d/html5/thumbnails/7.jpg)
Python Code
We first want to create a blank python script we will edit in the Thonny Python editor. Open Terminal, type: sudo nano blink.py
![Page 8: Introduction - LED Modules - ArduinoRaspberry Pi Pin Mapping . LED Module and Raspberry Pi Wiring . Python Code We first want to create a blank python script we will edit in the Thonny](https://reader033.fdocuments.us/reader033/viewer/2022053010/5f0d49ac7e708231d4399a0d/html5/thumbnails/8.jpg)
This will create a blank python script. Navigate to the “Pi” directory folder and right click our blank “blink.py” file to open with Thonny Python editor.
The following code will blink our LED Module for half a second off, then half a second off. After you have correctly entered in the code below, click the “run” button. You will see your LED Module blink.
![Page 9: Introduction - LED Modules - ArduinoRaspberry Pi Pin Mapping . LED Module and Raspberry Pi Wiring . Python Code We first want to create a blank python script we will edit in the Thonny](https://reader033.fdocuments.us/reader033/viewer/2022053010/5f0d49ac7e708231d4399a0d/html5/thumbnails/9.jpg)