Raspberry Pico with Ultrasonic Sensor and SSD1306
In this article, we will see how to interface Ultrasonic sensor and OLED with Raspberry Pi Pico using MicroPythonlanguage.
More About MicroPython:
MicroPython is a lean and efficient implementation of the Python 3 programming language that includes a small subset of the Python standard library and is optimized to run on microcontrollers and in constrained environments.
We can run MicroPython on various platforms like nodemcu, esp32, STM32 based controllers, and now on Raspberry pi pico.
Pico Interface with HCSR04:
In ultrasonic module HCSR04, we have to give trigger pulse on trigger pin, so that it will generate ultrasound of frequency 40 kHz. After generating ultrasound i.e. 8 pulses of 40 kHz, it makes the echo pin high. The echo pin remains high until it does not get the echo sound back.
So the width of the echo pin will be the time for sound to travel to the object and return back. Once we get the time we can calculate distance, as we know the speed of sound.
HC-SR04 can measure up to range from 2 cm - 400 cm.
Ultrasonic Module will generate the ultrasonic waves which are above the human-detectable frequency range, usually above 20,000 Hz. In our case, we will be transmitting the frequency of 40Khz.
More on SSD1306 Interface:
In this project, we will be using SSD1306 which has an i2c interface. So we will be interfacing SSD1306 with pico with i2c interface.
Connection Diagram :
Tutorial Video :
Raspberry Pico with Ultrasonic Sensor and SSD1306
- Comments(0)
- Likes(1)
- KushagraK7 May 27,2021
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Emb-dev
- USB to UART Converter module This is the pcb design file for USB to Serial converter. In this design i have used CH340 USB to ser...
- Raspberry Pico with Ultrasonic Sensor and SSD1306 In this article, we will see how to interface Ultrasonic sensor and OLED with Raspberry Pi Pico usin...
- Microchip PIN-44 Developement Breakout Board This design is for PIC 44 pin SMD Controller. I have designed this board as initial version which wi...
- Custom Designed Seven Segment Display Led is very basic component in the design and some time led do lot more work than just indication.In...
-
Build a Walking Robot: Theo Jansen Style 3D Printed Octopod
158 0 4 -
-
-
kmMiniSchield MIDI I/O - IN/OUT/THROUGH MIDI extension for kmMidiMini
143 0 0 -
DIY Laser Power Meter with Arduino
222 0 3 -
-
-
Box & Bolt, 3D Printed Cardboard Crafting Tools
191 0 2