Browse over 10,000 Electronics Projects using the Page Numbering provided at the bottom of each Page.

Object Detector using PIC16F877 and GP2Y0D340K

Object Detector using PIC16F877 and GP2Y0D340K

This is to try the Sharp GP2Y0D340K infrared object detector. It is cheap, the disadvantage is that is will detect an object but it has no indication of the distance of this object. The detection range is highly reflectiveness (thus color) dependent.
A (shiny) black object was detected at 23 cm while a white object was detected at 59 cm.

The schematics are straight forward. The blue LED flashes so it is clear that the PIC is operational, the green LED indicates if an object has been detected. I didn’t know they made resistors of such small value (the data sheet calls for 1 ohm) so I had to go the shop to buy one. And of course they were out so I had so settle for 1.5 ohms which works just as fine.

The long wires in the left hand side are from the Wisp628 in-line programmer. Note that for the A version of the 16F877 (so the 16F877A) you need Xwisp version 1.08 or higher. The switch and LED on the right hand side are simply the on/off switch and thus not on the schematic. The green LED is on; meaning the sensor has detected the photographer!

The program is even simpler than the schematic. The sensor signal is reversed so the light is on when detecting something. And this time I thought I’d handle the flashing a bit different. I pretty much like the simplicity of this program.

Visit Here for more.

 

More Articles to Read

Single-Sided USB Charger
Single-Sided USB Charger
A FPGA controlled RGB LED MATRIX for Incredible Effects – the Hardware
A FPGA controlled RGB LED MATRIX for Incredible Effects – the Hardware
Using Nanotimers to Reduce IoT System Power Consumption by an Order of Magnitude
Using Nanotimers to Reduce IoT System Power Consumption by an Order of Magnitude
Replace a microwave’s beeping with the Windows XP startup sound
Replace a microwave’s beeping with the Windows XP startup sound
A DIY Laser Scanning Microscope
A DIY Laser Scanning Microscope
Reverse-engineering the surprisingly advanced ALU of the 8008 microprocessor
Reverse-engineering the surprisingly advanced ALU of the 8008 microprocessor
ESP8266 LED lighting: QuinLED v2.6 PCB
ESP8266 LED lighting: QuinLED v2.6 PCB
Switching LVDS Graphics in a Laptop Computer
Switching LVDS Graphics in a Laptop Computer
Teleknitting: TV-based string art
Teleknitting: TV-based string art
DIY Bubble Machine
DIY Bubble Machine
Start your day with Nerf target practice!
Start your day with Nerf target practice!
Teardown of a Peaktech 6225A
Teardown of a Peaktech 6225A

Top




Shares