Testing the CNY70 reflective optical sensor as a digital input for a PIC16F887 microcontroller.
Right now I can only think in two things: physics and the apocalyptic winter of The Long Dark.
Just bought a bunch of electronics for my projects!
1- Pickit 3: a microcontroller programer
2- The base to connect the microcontroller
3- The cable to connect all that to my computer
4- An RFID reader/writer, this is uses the cards and keychain in the left, it wends then a signal reads their internal circuit for their ID, so it can be used like a digital key to activate whatever.
5- A real time clock, for like when you want your device to act at a certain hour.
6- An ultrasound sensor for measuring distances
7- Five optical sensors, this are used for line following robots.
Get ready for Fallout New vegas screenshots, for with this game I have finally found God
So for some time now I've had an idea of an usb extension that lets you choose between two usb ports using a switch.
So I started taking measurements and making the design:
Then I actually made the thing, I would have loved to make it on a PCB for it to be more sturdy and reliable but that’s not suitable for me at the moment, so I just soldered some cables (what a mess) and now it’s time to test it.
After some adjustments a resoldering it works just fine and I have a functional prototype that I hope does not burn my computer.
So, the switch selects which USB port receives power. That way, when on the left it activates the left port:
And when in the right it reads the right port:
The Usb on the left has a solid black image and the one on the right a solid white.
It works so only the selected Usb port is the one that works.
This blog is my way of recording and sharing my creations, ideas and thoughts.
169 posts