arduino

Arduino : sending MIDI up the USB

I'm interested in making an Arduino based MIDI controller to talk to my computer. Looking at other examples of Arduino MIDI (eg. http://itp.nyu.edu/physcomp/Labs/MIDIOutput), they all seem to wire up a dedicated 5 pin DIN. Which makes sense as this is the original cable to connect keyboards, expanders and sequencers together. However, I...

Arduino: Lightweight Compression Algorithm to store data in EEPROM

I want to store a shitload of data onto my Arduino whith ATmega168/328 Controller, but unfortunately there's only 256KB / 512KB of EEPROM storage. My idea is to make use of an compression algorithm to strip down the size. But well, my knowledge on compression algorithms is quite low and my search for ready-to-use libraries failed. So,...

Pyserial problem with arduino - Works with python shell but not in program

Alright so I am positive my Arduino circuit is correct and the code for it. I know this because when I use the serial monitor built into Arduino IDE and send 'H' an LED lights up, when I send 'L' that LED turns off. Now I made a python program import serial ser = serial.Serial("COM4",9600) ser.write("H") When I run the code the LED ...

Arduino and External Peripherals

I am a CS guy getting started with Arduino. This is probably a very basic electronics question but from going over the arduino tutorials everything is connected to the arduino with a resistor. Well since i am following the tutorials i know what type of resistor i should use but what i do not know is why i should use one? and What type...

Writing to a COM port with .Net

How would I go about writing to a COM port, trying to convert the following example to .Net (C#), specifically the PHP part? If possible is there an easier way to write out to a USB? ...

How to Get Ambient Temp from Arduino Lilypad Temperature Sensor

I am connecting a LilyPad Temperature sensor to a LilyPad Arduino 328 Main Board with the goal of reading fairly accurate ambient temperature readings. The sensor is receiving power and giving a responses I'm able to read over serial. The problem I am confronted with is that reading from the sensor is giving me very unusual - although ...

What are some ideas for an embedded and/or robotics project?

I'd like to start messing around programming and building something with an Arduino board, but I can't think of any great ideas on what to build. Do you have any suggestions? ...

Getting started with Arduino?

I'm going to get an Arduino starter kit like the one below. What else do I need to get started? What are some good Arduino programming resources? What else can I buy/acquire to make my first embedded programming experience more pleasant? What are some good beginner projects? http://www.sparkfun.com/commerce/product_info.php?prod...

Using classes with the Arduino

I'm trying to use class objects with the Arduino but keep running into problems. All I want to do is declare a class and create an object of that class. Can anyone give me an example? ...

Fuzzy logic membership function in C

Hi, I'm trying to implement a fuzzy logic membership function in C for a hobby robotics project but I'm not quite sure how to start. I have inputs about objects near a point, such as distance or which directions are clear/obstructed, and I want to map how strongly these inputs belong to sets like very near, near, far, very far. Does ...

Arduino String Formatting Issue

I'm making an Arduino-powered clock, and in the process, I'm trying to format integers into two-digit formatted strings for the time read-out (e.g. 1 into "01"). The following gives me "error: expected primary-expression before '{' token": char * formatTimeDigits (int num) { char strOut[3] = "00"; if (num < 10) { strOut = {'0',...

Interrupt driven HD44780 library for an Arduino

I have an HD44780 LCD screen, and I've been using the LiquidCrystal Library provided with the Arduino development package. However, it's not reliable. I noticed some problems with it, and instead of being interrupt driven, it just sleeps as long as the developer thinks the chip should take to execute the operation. From the spec sheets,...

Home automation using Arduino / XMPP client for Arduino

I am trying to setup a system for automating certain tasks in my home. I am thinking of a solution wherein a server side application would be able to send/receive commands/data to Arduino (attached with Arduino Ethernet Shield) via the web. Here the Arduino may both act as a sensor interface to the server application or command execut...

Make hardware for the iPhone

I am pretty clear about the fact that I build software to leverage hardware devices that they work with the iPhone thru EAAccessory and bros. What I am not clear where do I get the hardware specifications if I want to connect an Arduino project with the iPhone? ...

String manipulation using Ardunio and C++

I am trying to manipulate a string in C++. I am working with an Arduino board so I am limited on what I can use. I am also still learning C++ (Sorry for any stupid questions) Here is what I need to do: I need to send miles per hour to a 7 segment display. So if I have a number such as 17.812345, I need to display 17.8 to the 7 s...

C++ “was not declared in this scope” compile error and modification tips.

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. :P This code is taken from an ATmega32 (from : [url=http://sites.google.com/site/onewheeledselfbalancing/Home/twin-wheel-self-balancing-sk...

What are the major differences between coding an AVR ATmega32 and an Arduino Mega?

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 written for an ATmega32 ...

List machine's serial ports [Qt4]

I have an arduino-based device which connects through USB. I'd like to detect it from my Qt4 application, using QExtSerialPort (or whatever necessary), when it's plugged in. If this weren't possible, I thought I could somehow get a list of the system's port names and just try all of them in search for my arduino (where I'd implement s...

arduino web client class not working

I am trying to use arduino client class to fetch an html page from internet (Example from arduino library itself), but it's not working (Connection is not getting established). It's failing at: client.connect(); I have tried both Ethernet and Ethernet2 libraries. My arduino development platform version is 0017 , OS is win XP. Follo...

Serial Communication between Java RXTX and Arduino

I'm trying to communicate between my PC (Windows 7 using Netbeans and RXTX) with an Arduino Pro, using the serial port. The Arduino is actually connected to the PC using an FTDI cable. The code is based on the Java SimpleRead.Java found here. Currently the Arduino simply prints out a string when it starts up. My Java program should pr...