Lynxmotion Tech Support

www.lynxmotion.com
It is currently Tue Jun 18, 2013 11:28 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 61 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject:
PostPosted: Fri Oct 03, 2008 9:37 am 
Offline
Superguru of Robotics!!!
User avatar

Joined: Wed Nov 28, 2007 7:48 am
Posts: 1141
Location: Netherlands
If you're thinking of adding 4x4 buttons i'll think that you are looking at something like this or this. Did you think about how and where you want to mount them on the remote?

Maybe it is possible to get 2x4 buttons on each side/back of the remote. I just where the fingers are when you hold the remote. I could only find 4, 12, 16 or a full keyboard though...

Anyway, here is a link with a dutch site who sells a lot of keys. The datasheets and pictures ;) are in english so it might me a good source of inspiration...

Xan


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 03, 2008 10:00 am 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
Xan wrote:
If you're thinking of adding 4x4 buttons i'll think that you are looking at something like this or this. Did you think about how and where you want to mount them on the remote?


Cool key pads! I haven't put much thought into where to put them yet. I just got the wires ran to the Bot Board. I'm not the brightest programmer, but I think I can at least verify this is a sound workable solution.

Xan wrote:
Maybe it is possible to get 2x4 buttons on each side/back of the remote. I just where the fingers are when you hold the remote. I could only find 4, 12, 16 or a full keyboard though...

Anyway, here is a link with a dutch site who sells a lot of keys. The datasheets and pictures ;) are in english so it might me a good source of inspiration...

Xan
Thanks!

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 03, 2008 10:52 am 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
I did a simple follow the input program and it works. The Atom Pro is not fast enough for this to work glitch free though. But the test is a success. Now I will write a program to grab the pulse lengths and send them to the terminal in the IDE. Wish me luck lol.

Code:
start:

input_test = in0
if input_test = 1 then skipper
low 3
goto start
skipper:
high 3
goto start

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 03, 2008 11:51 am 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
Ok, I can now read the first channels pulse length. 8)

Code:
input_test var bit
separator var word
cha1 var word

sound 9, [100\880, 100\988, 100\1046, 100\1175]

;buttona = in4
;if buttona = 1 then start

;adin 0, servo0
;serout S_OUT,i57600,[dec3 servo0\3," "]

start:      ; find the beginning.
input_test = in0
if input_test = 0 then
pause 12
endif
input_test = in0
if input_test = 0 then beginning
goto start   ; the line has been low for at least 12mS

beginning:
input_test = in0
if input_test = 0 then beginning   ; the line is tested till it goes high.
                           ; then the pulse starts 390uS later.
pulsin 0,1,cha1                  ; pulse is read into variable cha1.
serout S_OUT,i57600,[dec5 cha1\5," "]

goto start


It can be affected by the range % and trimmers. My unit responds with from 361uS to 743uS. By adjusting the travel to 150% I was able to receive pulses from 265uS to 838uS. I suspect the receiver does some math to these values before it sends the pulses out to the servo. Now to rebuild the pulse train in the Atom Pro to send to the receiver. :D

I know my programming skills leave a lot to be desired. :(

Edit: I had to change the pulse length values.

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Last edited by Robot Dude on Fri Oct 03, 2008 12:31 pm, edited 3 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 03, 2008 11:58 am 
Offline
Superguru of Robotics!!!
User avatar

Joined: Wed Nov 28, 2007 7:48 am
Posts: 1141
Location: Netherlands
Hi Jim,

Stop complaining about your programming skills! If I read this, I see big progress and that’s what counts :P

Robot Dude wrote:
Wish me luck lol.

Jim...
Good luck! ;)

Xan


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 03, 2008 12:13 pm 
Offline
Robot Guru

Joined: Thu Jul 13, 2006 10:10 pm
Posts: 2229
So what is the goal of the mods/programming?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 03, 2008 12:30 pm 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
zoomkat wrote:
So what is the goal of the mods/programming?


To add a key pad or two to the radio system for turning things on and off and changing the bots behavior. The current PS2 controller has 2 joysticks and 16 button. This system will have a huge range, 2 joysticks, and a 16 key keypad with up to as many as 16 "function" keys.

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 03, 2008 1:09 pm 
Offline
Robot Guru

Joined: Thu Jul 13, 2006 10:10 pm
Posts: 2229
So the receiver output for the two channels will be fed into a decoder for final control output?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 03, 2008 1:32 pm 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
zoomkat wrote:
So the receiver output for the two channels will be fed into a decoder for final control output?


Yes an Atom or other microcontroller will monitor the two channels to decode what key presses were made and what action to take.

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 03, 2008 1:47 pm 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
I am now able to send Atom Pro generated pulses to the transmitter and am able to control servos through this method. I'm confused by the Atom Pro. The manual says pulsin is measured in uS and pulsout uses 0.5uS. Is that correct?

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 03, 2008 2:25 pm 
Offline
Robot Guru

Joined: Thu Jul 13, 2006 10:10 pm
Posts: 2229
Any info on what happens in the transmitter section? Are the pulses sent in an ask/fsk fashion unmodified? Just thinking about something similar with my $10 walmart 2.4ghz cordless phone (with bi-directional capability!).


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 03, 2008 2:26 pm 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
zoomkat wrote:
Any info on what happens in the transmitter section? Are the pulses sent in an ask/fsk fashion unmodified? Just thinking about something similar with my $10 walmart 2.4ghz cordless phone (with bi-directional capability!).


No idea really.

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 03, 2008 4:04 pm 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
Well 4 hours later... I can read in and send out the pulses in the proper format for the radio to transmitter data exchange. Now we just need to write the keyboard scanning code.

Image

Code:
cha1 var word
cha2 var word
cha3 var word
cha4 var word
cha5 var word
cha6 var word
intest var byte
xx var byte

sound 9, [100\880, 100\988, 100\1046, 100\1175]

low 3

start:      ; find the beginning.
intest = in0
if intest = 1 then start
for xx=1 to 10
intest = in0
if intest = 1 then start
pauseus 500
next

start2:
intest = in0
if intest = 0 then start2
pauseus 500
pulsin 0,1,cha1
pauseus 500
pulsin 0,1,cha2
pauseus 500
pulsin 0,1,cha3
pauseus 500
pulsin 0,1,cha4
pauseus 500
pulsin 0,1,cha5
pauseus 500
pulsin 0,1,cha6
pauseus 500
;serout S_OUT,i57600,[dec5 cha1\5," "]

cha1=cha1*2
cha2=cha2*2
cha3=cha3*2
cha4=cha4*2
cha5=cha5*2
cha6=cha6*2

makepulses:
high 3
pauseus 740
pulsout 3,cha1
pauseus 740
pulsout 3,cha2
pauseus 740
pulsout 3,cha3
pauseus 740
pulsout 3,cha4
pauseus 740
pulsout 3,cha5
pauseus 740
pulsout 3,cha6
pauseus 740
low 3
;pause 4
goto start2

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 03, 2008 5:59 pm 
Offline
Roboteer
User avatar

Joined: Wed Apr 25, 2007 9:06 pm
Posts: 255
Location: Where the Robots roam
Kroony,

Unlike the BR6000, the AR6200 will only fail-safe on one channel and is not legal for robot competition.

It does have better range, but most robots do not need the range that an R/C plane needs.

I am presently using the DX6i with a PCTx which allows any PC to control up to nine analog channels if you have a receiver that can decode that many channels.

Just a thought.

Regards,
TCIII

_________________
If you are going to send a Robot to save the world, you better make sure it likes it the way it is!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 03, 2008 6:04 pm 
Offline
Roboteer
User avatar

Joined: Wed Apr 25, 2007 9:06 pm
Posts: 255
Location: Where the Robots roam
Jim,

I noticed in your picture that you are experimenting with a DX6.

The DX6 and DX6i are two different beasts and might not be the same electrically.

I believe that Spektrum is no longer manufacturing the DX6 as it has been superceded by the DX6i.

Just a thought.

Regards,
TCIII

_________________
If you are going to send a Robot to save the world, you better make sure it likes it the way it is!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 61 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group