pibot:lesson4
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
pibot:lesson4 [2021/11/06 20:02] – Corrected Electrical Description jstruebel | pibot:lesson4 [2022/10/20 19:53] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Objective ====== | ||
+ | |||
+ | This lesson will show you how to make the PiBot provide a video feed in a web page. First it will show you how to add the camera to the PiBot. Then it will show you how to program the PiBot to display a webpage with the video from the camera and allow you to drive it around. | ||
+ | |||
+ | ====== Parts Required ====== | ||
+ | |||
+ | The parts below are required to complete this lesson. Note that all parts are included in the [[https:// | ||
+ | |||
+ | - Assembled PiBot from [[: | ||
+ | - CSI Camera and cable | ||
+ | - OSOYOO CSI Camera Holder | ||
+ | - Micro Servo Motor and Hardware | ||
+ | - Hardware | ||
+ | - M1.5x6mm Self Tapping Screws | ||
+ | - M2 Push Pin Rivets | ||
+ | - M2.2x8mm Self Tapping Screws | ||
+ | - M2x4mm Self Tapping Screws | ||
+ | |||
+ | ====== Hardware Assembly ====== | ||
+ | |||
+ | <WRAP round important> | ||
+ | |||
+ | <WRAP round tip>When installing items with multiple screws or nuts, leave them loose until all are installed and then tighten to ensure that you can get them all inserted</ | ||
+ | |||
+ | - If starting from [[: | ||
+ | - Install the Micro Servo Motor on the top chassis with 2pcs M2.2x8mm self tapping screws from the hardware kit as shown below\\ \\ <WRAP round tip> | ||
+ | - If starting from [[: | ||
+ | - Disconnect the wires to the Ultrasonic Distance Sensor and remove the Ultrasonic Distance Sensor Holder from the Micro Servo Motor as shown below\\ \\ <WRAP box>{{ : | ||
+ | - Install the straight servo horn to the CSI Camera Holder with 2pc M1.5x6mm self tapping screw as shown below\\ \\ <WRAP round tip> | ||
+ | - Install the CSI Camera to the Holder with 4pcs push pin rivets as shown below\\ \\ <WRAP box>{{ : | ||
+ | - Install the CSI Camera Holder to the Micro Servo Motor with 1pc M2x4mm self tapping screw as shown below\\ \\ <WRAP round tip>It may require significant pressure to install the CSI camera holder to the micro servo motor</ | ||
+ | - Connect the Micro Servo Motor to the PCA9685 compatible board as shown below\\ \\ <WRAP round tip>If you started with the [[: | ||
+ | ^ Micro Servo Motor ^ PCA9685 Module | ||
+ | | @-brown:GND (Brown) | ||
+ | | @-red:5V (Red) | ||
+ | | @-orange: | ||
+ | </ | ||
+ | - Connect the CSI Camera to the Raspberry Pi board as shown below\\ \\ <WRAP round tip>Feed the CSI ribbon cable through the slot in the CSI camera holder to bring it back to the Raspberry Pi board</ | ||
+ | ^ CSI Camera | ||
+ | | @-white: | ||
+ | </ | ||
+ | - Turn the PiBot on and place it so that it can drive around\\ \\ <WRAP round tip> | ||
+ | |||
+ | ====== Software ====== | ||
+ | |||
+ | Select the appropriate link below for instructions to setup the software on the PiBot and an exploration of how it works. | ||
+ | |||
+ | * [[: | ||
+ | * [[: | ||
+ | |||
+ | ====== Electrical Description ====== | ||
+ | |||
+ | The CSI camera has a lens that focuses the light of a scene onto a CMOS image sensor that converts the light into a digital signal that you can view on your screen. The CMOS image sensor has millions of small light sensors called pixels that each measure how many photons of light are hitting it. The CMOS image sensor reads the pixels line-by-line to determine how many photons each has measured, and sends that information back to the Raspberry Pi to display the image. | ||
+ | |||
+ | Since each pixel can only measure how many photons hit it, to get the different colors that we see there are red, green, and blue filters in front of the pixels so that each one measures the number of red, green, or blue photons that hit it. Because our eyes are more sensitive to green light, there are actually twice as many green pixels on the CMOS image sensor as there are red or blue pixels. The Raspberry Pi combines the pixel information into a single Red-Green-Blue (RGB) value that is displayed on your screen. | ||
+ | |||
+ | [[: | ||