arduino

Modify A Code From An ATmega32 To An Arduino Mega - error in In function `main' even if there is none!

I'm trying to modify this code in an attempt to make it work on an Arduino Mega. I'm pretty much new to C so, I may have made some major mistakes. By the way, this is for a self balancing skateboard. This code is taken from an ATmega32 (from here and I'm trying to make it work on a Arduino Mega). This code was writen for an ATmega32 d...

Creating libraries for Arduino

I want to write a library for my Arduino(header and class files), but I don't know what tools to use for this job and how to test and debug them. The Arduino IDE just helps in writing plain programs for direct bootloading, not full project management thing (correct me if I am wrong and guide appropriately with relevant references). Ple...

String reference not updating in function call in C++

I am writing an arduino library to post http request on web. I am using the String class from http://arduino.cc/en/Tutorial/TextString My code is behaving strangely when I am referring to my defined string objects after a function call. Here actually I am trying to get the body of my GET request and removing the http headers from the ...

Arduino serial monitor and java resets variables

I wrote a small app to turn on an LED light connected to my Arduino board. The app sends in a certain byte value to turn on the LED and a certain value to turn it off through the USB port. The strange thing is that for some reason when I use the serial monitor in the arduino development environment to turn on the LED and then close the ...

Does it matter which microcontroller to use for 1st time embed system programmer?

I've experience in doing desktop and web programming for a few years. I would like to move onto doing some embed system programming. After asking the initial question, I wonder which hardware / software IDE should I start on... Arduino + Arduino IDE? Atmel AVR + AVR Studio 4? Freescale HCS12 or Coldfire + CodeWarrior? Microchip PIC...

Make a USB Device, Control It In Java

I'm thinking about making a physical controller (device?) with knobs, buttons, and LEDs. I'd like to interact with it using Java (respond to the knobs, light up LEDs, etc). The reason I mention Java is two-fold: first, I know Java well1. Second, I've written the rest of the program I need to interface with in Java (though there are ways ...

PySerial App runs in shell, by not py script

I have a very simple python script that uses pySerial to send data over the serial port to my arduino. When I execute this line-by-line in the python shell, it works just fine, but when I put it in a ".py" file, and try to run it, nothing happens. Though the Serial lights on my UART do flash. So something is getting through, but it's ...

Wireless Programming with the Arduino XBee Sheild and XBee Explorer

I am trying to enable wireless programming of an Arduino via the XBee Shield and an XBee Explorer. I've seen two tutorials online that show you how do it. However, both tutorials talk about using components to connect the receiver XBee to the Arduino. Well the XBee shield handles the communication between the receiver XBee and the Arduin...

Echo Program in between Arduino and Python

I want to send some data to an Arduino through pyserial in Python. All I want to the Arduino to do is read the variable length string data from the serial port, and write it back so that Python can read it. Since I've been unable to do that, the code below only has Python sending on character. Here's the Python code: import serial impor...

What are some project ideas for the Arduino?

What are some project ideas for the Arduino? (Started as a community wiki!) ...

Help me get my Arduino working on my Intel Mac - Serial Port Greyed Out.

Hey, anyone else have had the problem of the Arduino (USB) board not having the option of chosing the Serial Port (the entire menu option is greyed out)? - Thanks! ...

Simple lightweight speech recognition on arduino

I need to transform just a few word into commands (5 or so will suffice). For this I'll need a small and fast program. I got started with connecting a microphone to an analog input and reading the values. The values I got are the "sound waves". Has any one got similar experience and knows how to proceed (or has a link to a library that i...

Keyboard and Bluetooth killed when establishing FTDI USB Serial connection

Okay, when I establish a connection using LabVIEW or Python to my Arduino Duemilanove (ATMega328) either my Bluetooth or keyboard is killed. I am simply trying to establish a connection to /dev/cu.usbserial-A9007UZh (or tty.usbserial-A9007UZh, but that seems to kill the keyboard or bluetooth even after Terminal is shut down when using p...

Free LED/LCD screen components for use with the Arduino

Hey you lot! I was wondering whether anyone knows of any websites where I can get free samples of LCD/LED screens/matrices for prototyping with my Arduino kit? Thank you. ...

Connecting arduino to internet across firewall proxy

Hello, I have an arduino with an ethernet shield. I want to know how can i connect it to internet across a firewall proxy. e.g the Arduino Ethernet library have only this reference to demonstrate how to connect your board to internet but no clue how to do it across firewall proxy's etc. Repeated from Arduino help pages. #include <Et...

Random directions, with no repeat.. (Bad Description)

Hey there, So I'm knocking together a random pattern generation thing. My code so far: int permutes = 100; int y = 31; int x = 63; while (permutes > 0) { int rndTurn = random(1, 4); if (rndTurn == 1) { y = y - 1; } //go up if (rndTurn == 2) { y = y + 1; } //go down if (rndTurn == 3) { x = x - 1; } //go right ...

Python PyQt Timer Firmata

Hello. I am pretty new to python and working with firmata I am trying to play around with an arduino . Here is what I want to happen: Set arduino up with an LED as a digital out Set potentiometer to analog 0 Set PyQt timer up to update potentiometer position in application Set a threshold in PyQt to turn LED on (Analo...

Adding characters to string

I am currently trying to build a very basic serial shell with my arduino. I am able to get an output from the device using Serial.read() and can get the character it has outputted, but I cannot work out how to then add that character to a longer to form the full command. I tried the logical thing but it doesn't work: char Command[]; ...

Eclipse, the AVR Plugin, and Arduino

I'm attempting to compile Arduino code in the Eclipse IDE using WinAVR and the AVR IDE plugin, and I'm running into one major stumbling block - when I try to compile the code I get the following error: /usr/bin/sh: g++: command not found make: *** [main.o] Error 127 Yeah, I bet not...I'm using Windows Vista. I have the paths to WinAVR...

Interfacing Android Nexus One with Arduino + BlueSmirf

I'm a bit new to all of this, so bear with me - I'd really appreciate your help. I am trying to link the Android Nexus One with an arduino (Duemilanove) that is connected to a BlueSmirf. I have a program that is simply outputting the string "Hello Bluetooth" to whatever device the BlueSmirf is connected to. Here is the Arduino progr...