Hello World on the Phone Drone

121 views
Skip to first unread message

Falko

unread,
Feb 22, 2012, 3:08:55 AM2/22/12
to phone-d...@googlegroups.com
I wanted to test my Phone Drone board and found out it also has PIN 13 connected to a little onboard LED. The LED is situated on the top left corner below the upper jumper. If you run the "Blink.pde" from the samples in your Arduino IDE, you should see it blink. Blinking LEDs are allways a good start to see if the development setup is correct.

If you want to see if your board can act as an ADK, I recommend my HelloADK project on Github: https://github.com/deadfalkon/HelloADKArduino for Arduino and https://github.com/deadfalkon/HelloADK for the phone. I was able to run this on my board, connect my phone and the board was recognized as an ADK. You can propably change the pin of the LED in the HelloADKArduino to 13 and control it from your phone.

Enrico

unread,
Feb 22, 2012, 7:56:42 PM2/22/12
to phone-d...@googlegroups.com
Thank you for the tips and for the initiative!

I will try to contribute to this group as well.

Cheers

dra...@gmail.com

unread,
Feb 28, 2012, 11:13:36 AM2/28/12
to phone-d...@googlegroups.com
On Wednesday, February 22, 2012 2:08:55 AM UTC-6, Falko wrote:
> I wanted to test my Phone Drone board and found out it also has PIN 13 connected to a little onboard LED. The LED is situated on the top left corner below the upper jumper.</div>

Have you gotten that code to work? On my board and in the schematic the only LEDs are the Power LED (red) and the TX/RX LEDs (yellow) connected to the 32u2. The LED you reference is LED4 in the schematic and connects to TX on the ATMEGA 32u2. It should only flash when you're communicating through USB.

dra...@gmail.com

unread,
Feb 28, 2012, 11:18:37 AM2/28/12
to phone-d...@googlegroups.com
Just tested it and it only lights up for serial comms. I wrote a program which echoes ASCII 'A' once a second to verify.

Enrico Davini

unread,
Feb 28, 2012, 12:17:14 PM2/28/12
to phone-d...@googlegroups.com
Yea, this LED doesn't exist on PhoneDrone board. The code Blink only works for some Arduino boards, like Demilanueve. I don't think it works for Uno either.

The yellow leds blinks when we are uploading codes to the board. On PhoneDrone Board, the pin 13 is analog, so the output is PWM.

I've changed the code, and instead of blinking, I commanded a analogWrite(13,64); and measured the output waveform on pin 4 of JP1, where Arduino's pin 13 is connected. It worked propertly.

I think it's a good way for testing your board.



2012/2/28 <dra...@gmail.com>
Just tested it and it only lights up for serial comms. I wrote a program which echoes ASCII 'A' once a second to verify.

--
--
The Phone Drone Discussion Group phone-d...@googlegroups.com

unsubscribe by sending an email to phone-drone-a...@googlegroups.com

 edit your settings
http://groups.google.com/group/phone-drone-adk?hl=de?hl=en

Reply all
Reply to author
Forward
0 new messages