Choose fontsize:
Welcome, Guest. Please login or register.
Did you miss your activation email?
News
Camera mod now completed
 
Pages: [1] 2
  Print  
Author Topic: Spykee Camera Head Tilt Mod Completed  (Read 9873 times)
CdRsKuLL
The 'FAT' DUDE
Administrator
Jr. Member
*****
Posts: 74


cdrskull@msn.com
View Profile Email
« on: January 25, 2009, 10:59:33 PM »

This mod will enable you to control the angle of the camera from the standard Spykee console. It works by reading the LED's on the base (green / red).

See the youtube video below
<a href="http://www.youtube.com/watch?v=fN_9rkovW6s" target="_blank">http://www.youtube.com/watch?v=fN_9rkovW6s</a>

To enable the servo you need to turn on BOTH led's for 2 seconds. Then if you turn one OFF it will then move the servo until you turn it back on. If you turn them both off it will turn the servo off until both LED's are turned back on again for a further 2 seconds.

Items I used.

A standard Radio Controlled servo. (£5) I used a old HPI from a RC car I had.
Arduino Nano (the brains) The code for this is attached below. (£30)
Bits of wire (£0)

This is the wiring diagram I've used


You will need to redesign the Spykee to enable you to move the servo forward and backwards to tilt you head. I have attached my servo with tiewraps(zip things)

I drilled out one of the green plugs and left out one of the screws which enabled me to pass the servo wire through. I can then just stick a black plug back in and I'm not left with a hole (see below)


I have attached the code for the Arduino in a text file. Just copy and paste it into the Arduino IDE.

You can set the servo limits be altering these lines
int minPulse     =  600;  // minimum servo position 
int maxPulse     =  1900; // maximum servo position 

600 is the minimum but you can go upto 2400 for the maximum (0 to 180 deg's)

Please post questions / results





thanks

Steve

Logged

Spykee Upgrades - Head Tilt / LED Upgrade
JLI
Newbie
*
Posts: 18


View Profile Email
« Reply #1 on: January 26, 2009, 06:49:10 AM »

bonjour

Merci tres bon travail .....@+
Logged
Rover57
Newbie
*
Posts: 5


View Profile Email
« Reply #2 on: January 26, 2009, 11:27:49 AM »

Hey CdRsKuLL,
   THANK YOU so much, you've made it very clear how to do this mod.~
Logged
valentinfr
Newbie
*
Posts: 1


View Profile Email
« Reply #3 on: January 29, 2009, 03:55:31 AM »

hello,
can you put more picture for build this spykee?
by
valentin
Logged
junglew
Newbie
*
Posts: 9


View Profile Email
« Reply #4 on: February 04, 2009, 06:54:56 PM »

 perfect  very very thanks..
Logged
junglew
Newbie
*
Posts: 9


View Profile Email
« Reply #5 on: February 05, 2009, 11:29:40 AM »

 Thanks steve   very good..bud where is the final code ??
 and, please, sorry bud  i not understand where is the arduino nano location in the spykee. have you photo?  Tthanks merci bien..
« Last Edit: February 05, 2009, 03:29:07 PM by junglew » Logged
mistercricri
Newbie
*
Posts: 13


View Profile Email
« Reply #6 on: February 26, 2009, 01:07:58 PM »

Hi Steve,

i don't understand why you have plug the 2 wires on the negative plugs of the leds ? the arduino doesn't need positive transition ?

thanks ;-)
Logged
mistercricri
Newbie
*
Posts: 13


View Profile Email
« Reply #7 on: February 26, 2009, 03:39:10 PM »

Hi Steve,

i have tested your Mods with success with my mini arduino pro, very great job, thanks !

Christophe
Logged
mistercricri
Newbie
*
Posts: 13


View Profile Email
« Reply #8 on: February 26, 2009, 04:52:58 PM »

My videos :

http://www.youtube.com/watch?v=guCYO75dHhU

http://www.youtube.com/watch?v=TuNJf0JbUek

 Grin

Logged
CdRsKuLL
The 'FAT' DUDE
Administrator
Jr. Member
*****
Posts: 74


cdrskull@msn.com
View Profile Email
« Reply #9 on: April 10, 2009, 09:50:37 AM »

D3 and D4 are the LED pins not 1 and 2.. the compatable nano board should be fine I would of thought. What bit of code do you want adding ?
Logged

Spykee Upgrades - Head Tilt / LED Upgrade
CdRsKuLL
The 'FAT' DUDE
Administrator
Jr. Member
*****
Posts: 74


cdrskull@msn.com
View Profile Email
« Reply #10 on: April 11, 2009, 01:46:27 PM »

just wondering if you have wired the LED's up right.. mine are on opposite sides because the way they light up.. this is the only thing I can think of.

the above code is fine for just flashing the onboard LED but you shouldn't really use delay() in the main loop as it does just that.. freezing the loop for that niumber of milliseconds which will put the servo pulses completely out. I would use a counter instead..,

check out www.arduino.cc site.. lots of example code on there.. its a awesome little device and you can now get them under £20 off ebay :-)

also forgot to add.. you must enable both LED's for 2 or 3 seonds before the servo becomes active.. then turn one off and it should then move.. stopping when you turn that led back on.
Logged

Spykee Upgrades - Head Tilt / LED Upgrade
CdRsKuLL
The 'FAT' DUDE
Administrator
Jr. Member
*****
Posts: 74


cdrskull@msn.com
View Profile Email
« Reply #11 on: April 11, 2009, 10:05:20 PM »

you could try changing the LOW to HIGH to see if that makes a difference. I thought the only two differences in the voltage were outputs on pins not reading... Although i do remember reading some where something about something.. might be making it up.. lol let me have a think.

Steve
Logged

Spykee Upgrades - Head Tilt / LED Upgrade
gogoterie
Newbie
*
Posts: 6


View Profile
« Reply #12 on: April 18, 2009, 03:18:57 PM »

Yep, was the servo, replaced it with another, and everything works,
Great Mod,   should've been in the original spec.
Thanks, Pete.
Logged
jss61790
Newbie
*
Posts: 1


View Profile Email
« Reply #13 on: August 15, 2009, 04:40:37 PM »

Hello, I am just about ready to proceed and buy the materials for this mod, I just wanted to make sure the following items are the correct ones. Thanks in advance!

Arduino nano: http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=360178933215&ssPageName=STRK:MEWAX:IT



Servo: http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=250112410866&ssPageName=STRK:MEWAX:IT



If anyone knows alternative places to get these items that would be a better value please let me know, I would highly appreciate it.
(I am located in the U.S.)
Logged
CdRsKuLL
The 'FAT' DUDE
Administrator
Jr. Member
*****
Posts: 74


cdrskull@msn.com
View Profile Email
« Reply #14 on: August 15, 2009, 04:48:16 PM »

yep they look fine m8... I still need to complete this mod mind. I need to add a transistor to it which toggles the power on/off to the servo. As I found it slowly drains your spykee battery if you dont use it. Need to slightly alter the code as well.

I should have some free time next week to complete it.
Logged

Spykee Upgrades - Head Tilt / LED Upgrade
Pages: [1] 2
  Print  
 
Jump to:  

TinyPortal v.1.0.6 beta 2 © Bloc