Show Posts
Pages: 1 2 [3] 4 5
31  Using Arduino / Programming Questions / Re: Errors with Timer3 library on: March 16, 2013, 04:04:09 pm
If you are using a rainbowduino board, it is based on Atmega 328 which only has a single 16-bit timer (Timer1).

The Timer3 library is made for boards like the Mega2560 which has four 16-bit timers.

That should compile fine if you choose a Mega board.
32  Using Arduino / Project Guidance / Re: How to decode this on: March 08, 2013, 07:09:06 pm
Hmmm.. I just did a bit of a writeup on decoding digital signals using the Input Capture function on Arduino the other day:

The sketch there could be adapted to decode this type of signal.

33  Using Arduino / Project Guidance / Re: Arduino-powered bike computer on: March 08, 2013, 06:44:38 pm
Uuuhhhhh ... Yup.

Thats why I suggest using an interrupt:

The Arduino will be able to catch very short triggers, and interrupts are about the most reliable way of catching short signals or pulses. Instead of having to check constantly if a pin is HIGH/LOW, the Arduino continually monitors it for you, and interrupts the main loop when the state of the pin changes. This leaves the CPU free to do other things in between signals.
34  Using Arduino / Project Guidance / Re: Arduino-powered bike computer on: March 08, 2013, 06:28:06 pm
Yeah, it can handle counting many thousands of times per second, so handling inputs from sensors on a bike should be no problem, especially if you use interrupts, so it only does work when there is a change of state.

35  Using Arduino / Project Guidance / Re: Arduino-powered bike computer on: March 08, 2013, 06:21:44 pm
Totally possible on one Arduino, and if speed is a concern, just make sure all of your modules support I2c or SPI, and it will handle it.

You can use interrupts for the hall-effect sensors, so the Arduino doesn't have to keep checking the state, and it will handle it easily enough. You woul have install jets on your bike before worry about overrunning its capabilities.

The amount of sensors is limited by what type of sensor etc, so is kind of impossible to give you a max number, but it can handle multiple I2C devices, so you could run the GPS, SD card and LCD all off I2C.

36  Using Arduino / Project Guidance / Re: quadcopter using arduino mega on: March 08, 2013, 06:07:06 pm
You are probably going to want to check out MultiWii:

I also recently documented a very simple Quad based on an Arduino Mega and a few modules:

Basically, you usually want gyro, accellerometer, compass, and barometer sensors which you can get in a single module, then you just need something for wireless control, whether you buy a controller or build one. I used an old XBox controller.
37  Community / Exhibition / Gallery / Re: XBox Controller: Embedded Arduino and RF/Wireless Mod on: December 31, 2012, 05:13:57 pm

So I built a Quadcopter that is controlled with the modded XBox controller.

It uses a custom flight control board built using an Arduino Mega and MultiWii software.

Here is a video showing how its working currently:

At the very end the right motor wire breaks right behind the bullet connector.

More info at my blog, see link above.
38  Using Arduino / Project Guidance / Re: Combining data and serial output question on: November 09, 2012, 05:37:35 pm

SoftwareSerial Library will allow you to use two or more serial devices:
39  Community / Exhibition / Gallery / Re: XBox Controller: Embedded Arduino and RF/Wireless Mod on: October 29, 2012, 02:06:50 pm


I knew about the USB connection, and was initially looking at the possibility of using a USB host shield to read the data from the controller, but couldn't seem to find any examples or info on whether the Orig. Xbox controllers are supported. The general size of the shields and the extra cost involved were also a factor. 360 controllers seem to be supported, but I'm still unsure about these, so if somebody could clarify, please feel free.
40  Community / Exhibition / Gallery / XBox Controller: Embedded Arduino and RF/Wireless Mod on: October 28, 2012, 04:02:40 am
I have always enjoyed taking apart electronics to salvage components and see what makes em tick, and this is a little mod that let me dig into the guts of a relatively straight-forward device: an XBox controller. I have a bunch of old controllers around, along with some Arduino Nano boards, so decided to join another together with an RF module in order to control various devices wirelessly.  The controller basically consists of a bunch of potentiometers and buttons arranged in an easy-to-operate kind of way, so this build is fairly simple in theory. As such, the wiring is fairly straight forward, there are just a lot of wires to connect to make use all of the inputs. I chose an APC220 radio module due to its ease of use (UART/TTL), range (1Km), and the fact that it allows communication with computers and Arduino based devices. The settings (frequency, data rate, etc) can also be changed on the fly, so it is fairly versatile. Any Arduino compatible RF module could be used in its place. I believe this would work similarly with a 360 controller, but haven't taken one apart... yet.

Before:                 During:                 After:

Details and pictures at
41  Using Arduino / Project Guidance / Re: Direct WAV playback from SD: The Beginnings of a Library... on: October 22, 2012, 01:52:58 am
Been a while, but work on this library has slowed to a crawl since it works fairly well at this point. Thought it would be worth an update:


    PCM/WAV playback direct from SD card to attached speaker/amplifier

    Asynchronous Playback: Completely interrupt driven. Allows main loop to execute instructions while playback occurs.

    Playback uses a single timer (Timer 1)

    Supported formats: WAV files, 8-bit, 8 to 20khz Sample Rate (autodetection), mono

    Supported devices: Arduino Uno, Nano, Mega, etc.

    Files easily converted using iTunes or other software:

    iTunes Conversion:
    Click > Edit > Preferences > Import Settings
    Change the dropdown to WAV Encoder and Setting: Custom > 16.000kHz, 8-bit, Mono
    Right click any file in iTunes, and select "Create WAV Version"
    Copy file to SD card using computer

    Contains optional proof-of-concept add-on library for RF (Wireless) audio streaming using NRF24L01+ radio modules. See readme files for details.

The current version can be found here:

42  Using Arduino / Project Guidance / Re: Help, Advice required on: October 20, 2012, 11:51:00 pm
I would just go with the L298N if not sure of power requirements.

You might be able to go with ULN2003 depending but I can't say without knowing the specifics of the setup.
43  Using Arduino / Project Guidance / Re: Help, Advice required on: October 20, 2012, 04:18:43 pm
Yeah, same programming and connections for the Nano.

The main thing to look at is the chip. Uno and Nano can both use Atmega328 chips, so most things are completely interchangeable. Anything with a different chip will have some differences.
44  Using Arduino / Programming Questions / Re: Getting aiken biphase ( F2F ) signal into binary data on: October 20, 2012, 03:28:14 pm
Not sure of exactly what you are working with (data speeds, etc), but here is a good write up from Atmel that includes examples for decoding Manchester and Biphase signals:

45  Using Arduino / Project Guidance / Re: Arduino Wireless Use on: October 16, 2012, 07:30:08 pm
I have had good luck using NRF24L01+ radio modules. They are pretty fast and you can communicate with multiple devices (Max 7 devices)

I recently ordered a couple interesting devices that apparently allow over-the-air programming of Arduinos along with serial based wireless data transfer/communication, but have not received them yet. If they work as advertised, would probably work here also:
Pages: 1 2 [3] 4 5