Social Icons

Sunday, October 20, 2013

How to Remote Control Anything with a DIY Sonic Screwdriver and Light Sensors

Materials

  • Light dependent resistor (LDR)
  • 1k resistor
  • PNP transistor
  • 3 volt battery
  • Bright LED
  • Marker or other enclosure

Step 1 Trusty Circuit

Regular readers will be familiar with our simple light-detecting circuit. It's a three component circuit that allows current to flow through it when light is present. We'll be putting this circuit into the device we wish to automate. This can work in your vehicle, computer, electric door lock, etc.
How to Remote Control Anything with a DIY Sonic Screwdriver and Light Sensors
I chose to viciously decapitate an annoying educational stuffed frog for two reasons. First, I have already sacrificed my guinea pig computer in the stir plate project. Second, this very loud and maniacally happy frog is known to turn itself on in the basement and recite the alphabet song for hours on end. After a quick jack the ripper on the neck fabric, I've got myself an awesomely creepy frog head. I drilled a hole in each eye and mounted a red LED in each to give it that all important hypnotoad feel.
How to Remote Control Anything with a DIY Sonic Screwdriver and Light Sensors
Death to the frog bourgeoisie.
How to Remote Control Anything with a DIY Sonic Screwdriver and Light Sensors
The stuffed frog face is large enough that we can just make our circuit on a breadboard and place it inside the fabric.
How to Remote Control Anything with a DIY Sonic Screwdriver and Light Sensors
I removed the light detecting circuit from the bubble blowing alarm clock and plugged it into the frog head breadboard.
How to Remote Control Anything with a DIY Sonic Screwdriver and Light Sensors
You could make this circuit on the breadboard just as easily. If you do, be sure to solder some long wires to the LDR light sensor so you can position it where the light will hit it and activate the LEDs.
How to Remote Control Anything with a DIY Sonic Screwdriver and Light Sensors
A red and a black wire go into the frog skull to connect to the positive and negative LED leads.
How to Remote Control Anything with a DIY Sonic Screwdriver and Light Sensors
I used a 3 volt battery because I can run 2 LEDs on 3 volts with no need for a protective resistor. If you are modifying your computer, you can just connect to either side of the main power switch.
How to Remote Control Anything with a DIY Sonic Screwdriver and Light Sensors
I just twisted the wires together to connect the eye LEDs. One black wire connects the negative LED leads together and another connects them to the breadboard. One red wire connects the positive LED leads together and another connects them to the breadboard.
How to Remote Control Anything with a DIY Sonic Screwdriver and Light Sensors
 A small piece of duct tape can keep those twisted wires in place.
How to Remote Control Anything with a DIY Sonic Screwdriver and Light Sensors

Step 2 Making the Sonic

You can make a sonic screwdriver however you want. The real Doctor Who has had a million different versions and yours will be no less authentic. After all, who's to say your sonic isn't a future version of this time traveler's tool?
Because our circuit is activated by light, we need to make a sonic screwdriver with a tiny but powerful flashlight. I had these super bright oversized yellow LEDs lying around. To start, I wedged the LED into a washer.
How to Remote Control Anything with a DIY Sonic Screwdriver and Light Sensors
Next, I duct taped the washer onto the end of a brass hex nut.
How to Remote Control Anything with a DIY Sonic Screwdriver and Light Sensors
Shove the hex nut on the end of a marker and bam, you have a decent looking sonic screwdriver for pennies! To activate the LED, I simply taped a coin cell battery between the LED leads like an LED throwie.
How to Remote Control Anything with a DIY Sonic Screwdriver and Light Sensors
Now just bring your "sonic" flashlight to the light sensor and watch your hypnotoad activate!

Hypnotoad only turns on while the screwdriver is present, but a computer can be turned on normally with this setup. In a computer, the power button only needs to be held for a second to turn the entire system on permanently. As it turns out, the voice circuit inside the frog also works in this way, but dear freaking science, I never want to hear that frog's voice ever again.
How to Remote Control Anything with a DIY Sonic Screwdriver and Light Sensors
As always, any questions can be asked in the comments below, on theforum, or by messaging me directly.
Don't forget! We are currently accepting entries into our photo contest for a chance to win your very own lucid dreaming goggles kit! Just post a picture on the corkboard of a project you have made or are currently working on.

How to convert web cam to microscop




 Take the lens out of the webcam and turn it around to allow it to focus very close. Have a look at the last picture, that is a close up view of a magazine. The dots you see are what make up the solid colors that you see when you look at a picture in the magazine.

Saturday, October 19, 2013

nanosation m5 flashing

Updating the firmware on Nanostation 5 using serial port and ethernet port
The video has arabic commentry, but it should be good enough to for english speakers, as the commands and sequence is clear I think.


 Nanostation 5 from Ubiquiti









Using a small flat screwdriver, flip up the plastic label on the back, a bit on the right and a bit on the left, just enough to expose the the screws.









ِWith a medium sized Philips screwdriver, undo the screws, as they are a bit tight, it might be difficult with a small screwdriver.
.






Now get the left screw.













Now let's pull out the internals of the nanostation, using the small flat screwdriver, slowly and gently.






Turn over and pull out the PCB (Printed Circuit Board) out of the plastic enclosure completely.
.





This side has the antenna of the nanostation.







Turn over gently to get to the other side where the connectors we are concerned with are.



Put it gently on the table, be careful as the nano is resting on the antenna now, and we don't want to damage that.






The Serial Port on the Nanostation5
Name, description, specifications of this Connector (2mm pitch 10pin header connector):
·         pin header
·         2mm pitch
·         10 pin or 10 contacts or 2x5way
·         Male
·         dual row 
·         surface mount connector 
·         Straight



Left Column      Right Column
1 3.3v               2
3 HSIN             4
5                       6
7 HSOUT          8
9 GND              10



Unfortunately, as we see in the pictures above, the pins are not marked, and I couldn't find a diagram or tutorial about Nanostation-5, but the pins are the same as for Nanostation-2 shown in this picture.




And I'm going to use what I could get my hands on till now as shown here.

Female to female jumper cables of 2.54mm pitch.





1) First USB adaptor (Prolific Technology, Inc. PL2303 Serial Port)
This is the easy one, as it was clearly marked, we will be using this one to complete the tutorial and to do the video tutorial.





Make the connection between the USB adapter and the Nanostation 5, like is shown here.
The Black and Yellow cables are next to each other, and because they are of a bigger size than the Nanostation 5 pins, they are a bit tight, so just hold them together and insert them in, they will fit ok, just be careful and don't bend or break the pins.
NS5 Serial Port                                                     USB-TTL
GND<-------------------BLACK     cable--------------->GND
HSOUT<----------------YELLOW cable--------------->RXD
HSIN<-------------------RED         cable--------------->TXD






Now plug the USB into the computer, but don't turn on the Nanostation yet.



Now on the computer, from a shell or command prompt in Linux.
Check the name of the Virtual Serial Port that we are going to use to connect to the Nanostation.
[root@SL6 ~]# dmesg | grep ttyUSB | tail -n 1
usb 2-1.3: pl2303 converter now attached to ttyUSB0

Install and configure (minicom) (a serial communication program):
[root@SL6 ~]# yum install minicom
[root@SL6 ~]# vim /etc/minirc.dfl 
[root@SL6 ~]# cat /etc/minirc.dfl 
pu port             /dev/ttyUSB0
pu baudrate         9600
pu bits             8
pu parity           N
pu stopbits         1
pu rtscts           No




Run the minicom program
[root@SL6 ~]# minicom










Now plug the turn on the Nanostation and keep your eye on the minicom program that should be running on your computer.





On the computer's screen, in the minicom program after a couple of secoonds, we will start seeing text scrolling up (the system boot messages) then it will stop and ask for login name and password for the nanostation (default is ubnt/ubnt).


 








Slows down here while decompressing the Linux kernel (Ubiquiti Nanostation uses Open Source Linux :) )








Screen stopped and asking for login.










To get into the BIOS which is called Redboot on Nanostation, we hit CTRL+C while the Nanostation is booting (not now after everything stopped and we logged in)

We can still do it now, by logging in as above, then running command (reboot) then when it starts booting again we hit ctrl+c (may need or can hit it repeatedly) and the booting process stops and we get into the BIOS (Redboot).






Hitting CTRL+C




We'll talk in other posts on how/why/what to use the serial connection for like fixing and completely messed up Nanostation (debrick or debricking) and flashing firmware etc.


References:

How to recover a Bricked Ubiquiti NanoStation2 or PicoStation2
index.php/articles/general-

tutorials/how-to-recover-a-
bricked-ubiquiti-nanostation2-
or-picostation2/
NanoStation2 RS232 Connection (this should say TTL and not RS232)
NanoStation2_RS232_Connection

TTL to RS232 adaptor Explained
php/2007/06/11/ttl-to-rs232-

adaptor-explained/

FTDIchip.com  USB TTL Serial Cableshttp://www.ftdichip.com/Products/Cables/USBTTLSerial.htm


Serial Interfaces (RS-232 vs TTL) (Recommended Standard 232 vs Transistor-Transistor Logic)http://www.sparkfun.com/tutorials/215


Pins on serial interface of NS5 is same as NS2
showthread.php?t=21454

Ubiquiti UART (LS5/LS2 JP1) (pin1,2 -- 3.3V (Vcc) , pin3 -- SIN (RX) , pin5 -- CTS , pin7 -- RTS , pin9 -- SOUT (TX) , pin11,12 -- GND )
showthread.php?t=182

ShareThis

Related Posts Plugin for WordPress, Blogger...
 
Widget by : technology castel