Show Posts
Pages: [1] 2 3 ... 7
1  Community / Exhibition / Gallery / Re: Fully wireless Internet remote control - Arduino, Electric Imp & nRF24L01 on: August 05, 2013, 12:15:10 am
I have been trying to get this to work but I simply cannot! can you please help me out? Although the code runs, I can actually never get the two rf modules to communicate. What are the two pipes supposed to be?
2  Using Arduino / General Electronics / Re: 5 volts on 3.3v arduino pin on: January 09, 2013, 02:52:18 am
Well since the LED will not be powered by the USB when its not charging wouldnt the arduino pin have to be providing the power for it to turn on? The issue is that essentially I am providing two power sources to the LED and although generally only the arduino will be powering it, when the usb is plugged in, there will be 5 volts that will power the led but also will be applied on the digital pin of the arduino. will that damage the pin?
3  Using Arduino / General Electronics / 5 volts on 3.3v arduino pin on: January 09, 2013, 02:17:32 am
So I am planning to use this circuit to charge a coin cell that I have powering an 3.3 volt arduino.

http://chasingtrons.com/display/ShowImage?imageUrl=/storage/projects/cr2450-charger/LIR2450%20Charger.png?__SQUARESPACE_CACHEVERSION=1332869958543

The circuit has a LED that is lit up while charging but since I dont plan to charge often, I wanted to reuse that LED for my actual program.

1) Can i simply connect a digital pin to that resistor led part? Or would that cause problems when I plug in the 5 volt usb power to charge?

2) What would I have to do in order to use that reuse that led? My circuit is running out of room and I need the LED in a specific place for my enclosure.

Thanks!
4  Using Arduino / Programming Questions / Re: Audioino? on: January 02, 2013, 03:19:11 pm
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?
5  Using Arduino / Programming Questions / Re: Audioino? on: January 01, 2013, 04:21:08 pm
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?
6  Using Arduino / Programming Questions / Re: Audioino? on: January 01, 2013, 03:58:57 pm
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?
7  Using Arduino / Programming Questions / Re: Audioino? on: January 01, 2013, 02:45:32 pm
An ICSP programmer needs to hold reset low during programming. If you only have 3 pins over better use a normal (serial) bootloader. You will need Rx, Tx, Reset, plus power and Gnd.

1. If my project has a reset button can the user hold the reset button low while programming or does it have to be done through the ICP programmer?

2. I'm not a 100% sure how ftdi works but im assuming it takes signals from usb and then bit bangs it as a serial connection. Would it be possible to skip this chip and somehow bitbang serial through an audio port.. kinda like this guy? http://robots-everywhere.com/re_wiki/index.php?title=Serial_on_Android_using_the_audio_port
8  Using Arduino / Programming Questions / Re: Audioino? on: December 31, 2012, 06:46:30 pm
yea thats the use case i was thinking. adding the audio circuitry to the final product (not really much since its pretty simple) and then anyone could program it using like a website that plays the audio track. much simpler than using the arduino IDE or some programmer for those people that arent techy's. the only flaw i can see is like Nick mentioned, there is no feedback to ensure the program installed successfully so that could be problematic
9  Using Arduino / Programming Questions / Re: Audioino? on: December 31, 2012, 06:26:37 pm
yea that makes sense, so either inside my project or outside my project there would have to be some usb->ftdi->ttl converter to be able to do the serial communication that the arduino IDE requires correct?
10  Using Arduino / Programming Questions / Re: Audioino? on: December 31, 2012, 03:50:16 pm
i actually need the power and ground since it will be used to charge my device, so i only have 3 pins left on a microusb which would be used for miso, mosi, and sck. but that means reset would have to be left out. would that not work properly?
11  Using Arduino / Programming Questions / Re: Audioino? on: December 31, 2012, 02:35:13 pm
yea the main thing that I was hoping to solve by using the audio setup vs serial or icsp is that end users would not require any extra hardware and reprogramming would be extremely simplified since they would not even have to use the arduino IDE or anything since one could simple send out the audio file and people could update their devices. ICSP requires either an arduino as ISP or some external programmer which is added cost. And ftdi, although integrates the hardware in to the final product, still requires someone to use the IDE/avrdude to reprogram the device. Overall, although insigificant for someone experienced, for the nontechy these methods of reprogramming are bit more confusing.

But you are correct in that the devices will not be programmed that often. I mainly want to keep the option open just in case there is a patch that needs to be deployed or updates to code over time.

Also, can you trim the reset button off of the ICSP and just require a manual reset press? This would allow one to wire the ICP pins into say a microusb port which would be alot nicer than the current interface.
12  Using Arduino / Programming Questions / Re: Audioino? on: December 31, 2012, 02:53:42 am
Chris, is there anyway you could please recompile a functional bootloader for the atmega328p chip? Ive been trying for multiple days so far and although i can get it to boot up, I cannot get it to program successfully. I am not sure what the issue is anymore.

Thank you!
13  Using Arduino / Programming Questions / Re: Audioino? on: December 31, 2012, 02:06:12 am
But serial uploading requires a FTDI chip right? Thats like an extra 4 bucks added to my project cost. Im assuming you cannot program through software serial?
14  Using Arduino / Programming Questions / Re: Audioino? on: December 31, 2012, 01:39:36 am
Ive was able to successfully add the arduino verison of the bootloader and same problem of not being able to program it after bootloading. I think we have hit a wall and Im not sure if its worth my time anymore to continue this unless someone else can do some testing. I wish I knew more about bootloaders so I could write my own. I really like the idea of an audio based bootloader since it would be especially attractive in a commerical product and overall is easier to implement 1 wire rather than 6 for ICSP.

Do you know of any other neat bootloaders? I am trying to make my project easier to program than using ICSP, hoping to bring it down to 2 datawires.
15  Using Arduino / Programming Questions / Re: Audioino? on: December 30, 2012, 01:19:48 am
So I omitted that part, and when i tried to bootload it did not work properly. I then remembered I commented out your naked main function and so I UNCOMMENTED it and then recompiled and bootloaded and it bootloaded successfully and was able to boot. However, the same error blink occured when i tried to program. Not sure what the problem could be anymore. I even tried to change everything to the internal 8mhz clock and again it successfully boots but cannot actually be reprogrammed.

I was thinking it might help to run the bootloader in the arduino definition and when i changed the chAudioboot.c file to change the definition and then tried to build the project again this is the error I got.

Code:
~/Desktop/AudioBoot $ ./build.sh
chAudioBoot.c: In function 'setup':
chAudioBoot.c:98:4: warning: implicit declaration of function 'pinMode' [-Wimplicit-function-declaration]
chAudioBoot.c:98:20: error: 'OUTPUT' undeclared (first use in this function)
chAudioBoot.c:98:20: note: each undeclared identifier is reported only once for each function it appears in
chAudioBoot.c:99:4: error: 'Serial' undeclared (first use in this function)
chAudioBoot.c: In function 'loop':
chAudioBoot.c:104:4: warning: implicit declaration of function 'a_main' [-Wimplicit-function-declaration]
chAudioBoot.c: At top level:
chAudioBoot.c:127:6: warning: conflicting types for 'a_main' [enabled by default]
chAudioBoot.c:104:4: note: previous implicit declaration of 'a_main' was here
chAudioBoot.c:299:1: error: unknown type name 'uint8_t'
chAudioBoot.c:312:1: error: unknown type name 'uint8_t'
chAudioBoot.c: In function 'receiveFrame':
chAudioBoot.c:314:3: error: unknown type name 'uint16_t'
chAudioBoot.c:316:3: error: unknown type name 'uint16_t'
chAudioBoot.c:317:3: error: unknown type name 'uint16_t'
chAudioBoot.c:318:3: error: unknown type name 'uint16_t'
chAudioBoot.c:319:3: error: unknown type name 'uint8_t'
chAudioBoot.c:320:3: error: unknown type name 'uint8_t'
chAudioBoot.c:321:3: error: unknown type name 'uint8_t'
chAudioBoot.c:322:3: error: unknown type name 'uint16_t'
chAudioBoot.c:327:5: error: 'PINB' undeclared (first use in this function)
chAudioBoot.c:327:5: error: 'PB4' undeclared (first use in this function)
chAudioBoot.c:332:3: error: 'TCNT2' undeclared (first use in this function)
chAudioBoot.c:390:5: error: unknown type name 'uint16_t'
chAudioBoot.c:390:19: error: 'uint16_t' undeclared (first use in this function)
chAudioBoot.c:390:28: error: expected ',' or ';' before 'FrameData'
chAudioBoot.c:396:5: error: 'Serial' undeclared (first use in this function)
chAudioBoot.c:407:31: error: 'HEX' undeclared (first use in this function)
chAudioBoot.c:425:26: error: 'true' undeclared (first use in this function)
chAudioBoot.c:426:15: error: 'false' undeclared (first use in this function)
chAudioBoot.c: At top level:
chAudioBoot.c:437:25: error: unknown type name 'uint32_t'
chAudioBoot.c:437:40: error: unknown type name 'uint8_t'
chAudioBoot.c: In function 'runProgramm':
chAudioBoot.c:477:2: error: 'DDRB' undeclared (first use in this function)
chAudioBoot.c:478:2: error: 'DDRC' undeclared (first use in this function)
chAudioBoot.c:479:2: error: 'DDRD' undeclared (first use in this function)
chAudioBoot.c:480:2: warning: implicit declaration of function 'cli' [-Wimplicit-function-declaration]
chAudioBoot.c: In function 'a_main':
chAudioBoot.c:505:3: error: 'Serial' undeclared (first use in this function)
chAudioBoot.c:508:3: error: unknown type name 'uint8_t'
chAudioBoot.c:510:3: error: unknown type name 'uint16_t'
chAudioBoot.c:511:3: error: unknown type name 'uint8_t'
chAudioBoot.c:514:3: error: unknown type name 'uint8_t'
chAudioBoot.c:518:8: error: 'TCNT2' undeclared (first use in this function)
chAudioBoot.c:524:10: warning: implicit declaration of function 'digitalWrite' [-Wimplicit-function-declaration]
chAudioBoot.c:524:10: warning: implicit declaration of function 'digitalRead' [-Wimplicit-function-declaration]
chAudioBoot.c:535:12: error: 'LOW' undeclared (first use in this function)
chAudioBoot.c:541:11: error: 'PINB' undeclared (first use in this function)
chAudioBoot.c:541:11: error: 'PB4' undeclared (first use in this function)
chAudioBoot.c:550:3: error: 'HIGH' undeclared (first use in this function)
rm: audioboot.hex: No such file or directory
avr-objcopy: 'audioboot.elf': No such file
avr-objdump: 'audioboot.hex': No such file
avr-objdump: section '.sec1' mentioned in a -j option, but not found in any input file
Pages: [1] 2 3 ... 7