Networking Communications
Input Devices
So this week we are going to use input devices, input devices as the name suggests used to take Data from the User, unlike output devices which will be used to Give something in Action to the user.
Neil went through the different kinds of sensors available and I must say that this was one of the subjects that I was really looking forward to getting into. Sensors are a little bit like magic to me (I guess magicians must be using some too!) Although he was quite elaborate in his descriptions and they are listed in the archives, I feel that I need to put the pictures of some here for personal reference and future use. It is always easier for me to look at images rather than text.



And it works fine. 😃
Input Sensor Logic
I chose the HC-SR04 Ultrasonic Sensor for this week's assignment. This sensor works by emitting an ultrasound at 40,000 Hz and detecting the reflected wave. Technical specifications include:
- Operating Voltage: 5V DC.
- Current Consumption: 15mA.
- Ranging Distance: 2cm to 400cm.
The logic involves sending a 10µs HIGH pulse to the Trig pin. Then, I used the
pulseIn() function to measure the duration of the HIGH signal on the
Echo pin. The distance is calculated using the formula:
Distance = (Time * 0.034) / 2.
It's my first step in electronics and I'm not proud to present an unfinished project with my board... However, I'm still happy that my project works. And I can say now: electronics is almost for me.
Orange and Violet Simple Startup Business Animated Presentation de Cindy Marilyn