Author Topic: Accessing the 4th Axon Uart from behind the USB chip  (Read 2022 times)

0 Members and 1 Guest are viewing this topic.

Offline madsci1016Topic starter

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 1,450
  • Helpful? 43
    • Personal Website
Accessing the 4th Axon Uart from behind the USB chip
« on: December 12, 2009, 04:50:36 PM »
I would like to use the 4th Uart on my Axon for a data logger (the other 3 are being used). Has anyone come up with an easy way to wire to it?

I wish the Axon had jumpers to be able to access the 4th Uart when not using USB.


Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
Re: Accessing the 4th Axon Uart from behind the USB chip
« Reply #1 on: December 13, 2009, 08:28:26 PM »
Can you solder well?
Howdy

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: Accessing the 4th Axon Uart from behind the USB chip
« Reply #2 on: December 14, 2009, 06:13:03 AM »
What do you mean by '4th Uart'?

USB uses UART1 . . . did you mean that?

I didn't put jumpers on it because, if you use the USB (such as for bootloading) while sending other data to it, you can fry USB.

What are you using the other three UARTs for? If one of them doesn't need a high baud rate, you can easily create a software-based UART on any pin.

WebbotLib works with the Axon, and can do that for you easily.

Offline madsci1016Topic starter

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 1,450
  • Helpful? 43
    • Personal Website
Re: Accessing the 4th Axon Uart from behind the USB chip
« Reply #3 on: December 14, 2009, 08:16:52 AM »
What do you mean by '4th Uart'?

USB uses UART1 . . . did you mean that?

Yes.

I didn't put jumpers on it because, if you use the USB (such as for bootloading) while sending other data to it, you can fry USB.

I don't see how this could be physically possible. If you added a 3x2 header to the Axon, and ran the Uart to one row of 3 and the USB chip to the other; either the USB would be connected via 3 (or 2) jumpers (and making it impossible to connect anything else) or the jumpers would be off and the USB would not be connected.

I will have to look into the soft serial, i just feel kinda silly wasting cycles on a soft serial when the AVR has 4 hardware ones.

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,165
  • Helpful? 111
    • Webbot stuff
Re: Accessing the 4th Axon Uart from behind the USB chip
« Reply #4 on: December 14, 2009, 02:01:02 PM »
I understand what you are saying: and your suggestion would work.

However: there is always some trade off between physical size and flexibility and complexity for newbs. The additional header would require some extra space (and this board is tight on space) and there is always the problem with removable jumpers that people go and loose them.

Equally you could argue that it would be nice to have additional I2C headers in case you have multiple I2C devices, or additional SPI headers for non-programming SPI devices - or even that each IO pin should have two lots of 3 pin headers - one at Vbatt and the other at +5v (or even a third set with +3.3v). Whilst more flexible the board would be bigger and a lot more expensive (someone has to solder those header pins!).

So the trade off is always cost+size vs how often people need the feature. I would argue that 3 TTL serial outputs is still sufficient for most people/projects.

The other alternative is to look for something like an I2C to UART bridge gadget. Then you could connect lots of them without the processing of a software UART. Yep that adds to YOUR costs - but keeps down the cost for 99% of the user base.

Hope that helps, or at least helps to explain why things are as they are.

Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: Accessing the 4th Axon Uart from behind the USB chip
« Reply #5 on: December 14, 2009, 07:20:52 PM »
Yeap, Webbot is exactly right. There just wasn't enough room for all the stuff that could go on it. I couldn't even break out all the ATmega640 pins!