TTL issue with Atom Pro or Basic Stamp and µ24

Hexapod Robots

TTL issue with Atom Pro or Basic Stamp and µ24

Postby HellFire » Thu Mar 11, 2010 4:49 am

I am trying to accomplish tutorial 4

Hardware setups
Botboard II, Atom Pro 28, SRF04 and µ24
Botboard II, Basic Stamp BS2p24, SRF08 and µ24

I have tried Matt’s stamp code and RiverRatDC’s atom code on both hardware setups.
I am compiling with BASIC Stamp Editor v2.4.2 and Basic Micro Studio 1.0.0.14.
Settings CBR=4, TXD=3 and PIP=0 are set on the µ24. I double checked the baud in the code.

The problem I am having is every time I start the Botboard it locks up the µ24. When the µ24 locks up I can’t terminal to it. The green light stays on solid or off depending on when the µ24 locks up. I have to power off the µ24 to clear the lock.
I have run a protocol analyzer (Saleae Logic) on the signals from the Botboard and it looks ok but I’m a novice at this as Matt can attest!
The first signal from the atom code to the µ24 is 0x03 then a response from the µ24 is 1 0x00 then I get 0xff from µ24 then ~ 0x01 + 0xd4 ~ 0x01 r 0x8d but the µ24 never wakes up.
I have tried all Matt’s tutorials and can’t get any communication between the 2 boards. I have the srf04 and Srf08 working and tested with debug and podcontrol apps. I have 2 µ24 boards and 2 Botboards so I have to say it is most likely not a hardware issue.
Any ideas
Thanks

HellFire
Last edited by HellFire on Sat Mar 20, 2010 1:01 am, edited 3 times in total.
HellFire
 
Posts: 8
Joined: Wed Feb 24, 2010 4:43 am

Re: Serial issue with Botboard II and µ24

Postby HellFire » Sat Mar 13, 2010 3:59 am

Does anybody have serial communications running from the UART1 TTL on the µ24 to another device?

Thanks

HellFire
HellFire
 
Posts: 8
Joined: Wed Feb 24, 2010 4:43 am

Re: Serial issue with Botboard II and µ24

Postby HellFire » Sun Mar 14, 2010 6:41 pm

I have the atom pro 28 hooked up with one cable from p3 on the BBII to pin 2 of cn1 on the µ24 i am running same power to both so they both have a common ground
this is the code on the atom pro 28 i am using to test

Main:
SEROUT P3, i19200, ["+"]
end

I turn on the µ24 let it start turn on the BBII and it locks the µ24
Thanks for any help you can offer

Simon
HellFire
 
Posts: 8
Joined: Wed Feb 24, 2010 4:43 am

Re: TTL issue with Atom Pro or Basic Stamp and µ24

Postby Matt Denton » Sat Mar 20, 2010 1:03 pm

Hi Simon,

I have just cobbled back together my test rig for the BS2 tutorials. And I am also having troubles with the TTL interface via CN1. Unfortunately all of my proper test equipment is at work, which means I can't do much at home today. However, when I get in on Monday, I will run a proper test to see what is happening. It does seem that the p.Brain is locking up when certain data is sent to the RX pin!
Matt Denton
AKA: Winchy_Matt

micromagic systems ltd
Matt Denton
Site Admin
 
Posts: 1622
Joined: Tue May 20, 2008 9:15 pm
Location: Winchester UK

Re: TTL issue with Atom Pro or Basic Stamp and µ24

Postby HellFire » Sat Mar 20, 2010 9:16 pm

A BIG THANK YOU
I thought i was going out of my mind hopefully it is something simple
awaiting your test results with eager anticipation

Simon
HellFire
 
Posts: 8
Joined: Wed Feb 24, 2010 4:43 am

Re: TTL issue with Atom Pro or Basic Stamp and µ24

Postby Matt Denton » Mon Mar 22, 2010 3:10 pm

Hi Simon,

I have fixed the problem.. I hope! There is a new firmware download available HERE.

Follow these instructions to update your firmware, and let me know how you get on.

The first thing I did was run the two way comms tutorial, this is working fine on my test rig, and uses all of the functionality of the PIP protocol across the TTL port. Running this tutorial should give you some feedback on the debug port, such as

Code: Select all
digital data: 00111111
ana data: 0000 0000 0000 0000 0000 0000 0000 0000
I2C data: .......

something like that. Also make sure the following are set in your CONFIG menu:

TXD=3
PIP=0
CBR=4
Matt Denton
AKA: Winchy_Matt

micromagic systems ltd
Matt Denton
Site Admin
 
Posts: 1622
Joined: Tue May 20, 2008 9:15 pm
Location: Winchester UK

Re: TTL issue with Atom Pro or Basic Stamp and µ24

Postby HellFire » Tue Mar 23, 2010 1:05 am

Woo Hoo :D
Its working Its working
Many Thanks for fixing it
Tutorial 2 is working will work my way through the others
What was wrong?
HellFire
 
Posts: 8
Joined: Wed Feb 24, 2010 4:43 am

Re: TTL issue with Atom Pro or Basic Stamp and µ24

Postby Matt Denton » Tue Mar 23, 2010 8:00 am

Cool! Sorry it took me so long to get round to fixing it, been really busy lately.

What was wrong.. err, well the code for the µ24 is slightly different to the ds24, and I hadn't noticed that the TTL port although waiting for PIP command data, was trying to receive and transmit data on the RS232 terminal port, hence the lock up when no data arrived. :oops:
Matt Denton
AKA: Winchy_Matt

micromagic systems ltd
Matt Denton
Site Admin
 
Posts: 1622
Joined: Tue May 20, 2008 9:15 pm
Location: Winchester UK

Re: TTL issue with Atom Pro or Basic Stamp and µ24

Postby HellFire » Fri Mar 26, 2010 1:01 am

Wow :D
He's struting around the kitchen and not bumping into anything and my wife is a little freaked by it :lol: and i love it
Many Thanks Matt the Hex is perfect (and i didnt think it took you long to fix i thought it was quick)
I have a draganfly wireless cam on order for the blob tracking cant wait to get that going
HellFire
 
Posts: 8
Joined: Wed Feb 24, 2010 4:43 am


Return to Hexapods

Who is online

Users browsing this forum: No registered users and 2 guests

cron