Pages: 1 ... 3 4 [5]   Go Down
Author Topic: Audioino?  (Read 5752 times)
0 Members and 1 Guest are viewing this topic.
Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 639
Posts: 34726
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
but im assuming it takes signals from usb and then bit bangs it as a serial connection.
No it has a real UART inside it.

Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 100
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

so the usb/fdti chip simply converts usb data signals into TTL signals which are interpreted by the UART, correct? if thats the case could you not just recreate TTL signals through a headphone jack audio signal?
Logged

Lindau / Germany
Offline Offline
Jr. Member
**
Karma: 1
Posts: 68
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
so the usb/fdti chip simply converts usb data signals into TTL signals which are interpreted by the UART, correct? if thats the case could you not just recreate TTL signals through a headphone jack audio signal?

Audio Signals are AC-coupled, they are not very well suited for NRZ-Codes used by RS232 ( NRZ: http://en.wikipedia.org/wiki/Non-return-to-zero )
This is the reason why I used Manchester Coding ( also use by Ethernet http://en.wikipedia.org/wiki/Manchester_coding ). After some time it turned out that not every PC audio output has the same polarity, therefore I had to switch to differential manchester coding.

The circuit to interface the MC to the PC is in my opinion as minimalistic as possible:



Not all MCs have the same voltage switching level from 0 to 1. They seem to be for the Atmega168 quite similar but may differ to the Atemga328. So the voltage devider should be addapted.
« Last Edit: January 01, 2013, 04:22:43 pm by ChrisMicro » Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 100
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Chris, does your bootloader even use the UART? i thought it could technically run on any pin and all the demodulation was taking place in software?
Logged

Lindau / Germany
Offline Offline
Jr. Member
**
Karma: 1
Posts: 68
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No, it does not use the UART because the UART can't do Manchester Encoding.
Logged

Global Moderator
Melbourne, Australia
Offline Offline
Brattain Member
*****
Karma: 511
Posts: 19350
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The audio bootloader can no doubt be made to work (although you would need a way of confirming the process worked, eg. flash an LED) however I can't help you right now because I don't have the hardware to reproduce it.
Logged

http://www.gammon.com.au/electronics

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

Offline Offline
Full Member
***
Karma: 0
Posts: 100
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

so I am running my project off of a rechargeable 3.3v coin cell but the project will be charged using a USB connection. the micro usb has 5 pins so I am considering using power, ground, rx, tx, reset since this will allow for charging and also allow the chip to be reprogrammed. I would like to use an UNO's ftdi chip to program my project but i hear that the UNO is a 5v programmer and it could damage my circuit. How would I allow for 5v ftdi programming? The atmega itself should be fine with 5 volts but my battery and my nrf24l01+ wireless chip probably should not go up to 5volts.

any suggestions?
Logged

Global Moderator
Melbourne, Australia
Offline Offline
Brattain Member
*****
Karma: 511
Posts: 19350
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You could make your own programming device (based on the Atmega328P) and run it at 3.3V.
Logged

http://www.gammon.com.au/electronics

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

Pages: 1 ... 3 4 [5]   Go Up
Jump to: