Show Posts
Pages: [1] 2 3 ... 7
1  Using Arduino / Project Guidance / HM-10 Bluetooth issues on: April 30, 2014, 04:46:23 pm
Hello guys,

I am working on a project that needs very simple communication from an HM-10 to an android. I am having issues with the HM-10 as it does not actually respond to the AT commands with the OK even though it is receiving them (I can put it to sleep with AT+SLEEP and wake it up with a 80+ long string). I have checked my RX and TX lines on my teensy and it should work fine. The most confusing part is that it used to respond to the AT commands with OK but now it no longer does. I have tried to reset it using the SYSTEM KEY and also using the RESET pin. None of them are allowing me to see the responses.

I am using the default schematic provided in the datasheet and I am using the following code: (with the chip connected to Serial3 on the teensy 3.0)

Has anyone faced this issue where the chip just decides to not respond back? Anything I can try? This has happened to both of my hm10 boards and the status LED still blinks so I know the chip isnt actually busted.
void setup()
 Serial.begin(9600);  // Begin the serial monitor at 9600bps
 Serial3.begin(9600);  // Start bluetooth serial at 9600

void loop()
  if(Serial3.available())  // If the bluetooth sent any characters
    // Send any characters the bluetooth prints to the serial monitor
  if(Serial.available())  // If stuff was typed in the serial monitor
    // Send any characters the Serial monitor prints to the bluetooth
  // and loop forever and ever!
2  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?
3  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?
4  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.

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.

5  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?
6  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?
7  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?
8  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?
9  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
10  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?
11  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?
12  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.
13  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!
14  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?
15  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.
Pages: [1] 2 3 ... 7