arduino

Blackwidow and Yellowjacket (Arduino)

Any luck using the Arduino Blackwidow or the Yellowjacket. I can't find much information online about them in terms of reviews. I would like to connect to a wireless router, send small POST requests pertaining to resistances that have been read and receive responses in JSON format that would be instructions on switches that should be f...

Arduino: how to initialize 3-dim-array

I just build my fist LED-Cube an want to expand the test code a bit. To address each LED of my 3x3x3-cube I want to use a corresponding 3-dimensional array but I got errors on it's initialization. Here's what I did: int cube_matrix[3][3][3] = { { {0}, {0}, {0} }, { {0}, {0}, {0} }, { {0}, {0}, {0} } }, { { {0}, {0}, {0...

How to auto-detect Arduino COM port?

I'm using an Arduino with the Firmata library for communication to a C# application, and I want to eliminate a COM port configuration component since it can change from machine to machine... Is it possible to: Enumerate list of COM ports in the system? (In my googling I've seen some fairly ugly Win32 API code, hoping there's maybe a c...

Different int sizes on my computer and Arduino

Hi there Im working on a sparetime project, making some server code to an Arduino Duemilanove, but before I test this code on the controller I am testing it on my own machine (An OS X based macbook). I am using ints some places, and I am worried that this will bring up strange errors when code is compiled and run on the Arduino Duemilan...

How to send integers to arduino via serial?

hi fellows, i want to send integers to arduino via serial. for example when i send "1" the data received by arduino is "49" and when i send "a" the data received by arduino is "97" there were two functions in python; ord() and unichr() for example unichr(97) = u"a" and ord(u"a")=97 but im not that good at C language. ...

How to read gyroscope data with arduino?

hi fellows, i got one of these gyros http://www.xheli.com/wag0diadpiin.html it has 6 pins 3,3 im afraid i might harm the device so i wanted to ask here. how should i connect it to arduino. and what code i should use? ...

How commonly used are the xilinx chips?

I'm beginning to learn embedded with C (and maybe some C++) and someone from the office said they're willing to donate a free xilinx chip they've got sitting on their shelf. I was thinking more along the lines of an Arduino, especially that the Arduino tutorials and sample projects are abundant. Can someone confirm how xilinx chips co...

Beginner hardware design books

I'm looking to begin working with Arduino but I have no understanding of how to create boards, can someone help push me in the right direction? ...

Rails user queue system?

I would like to create a Rails app that would allow users to control the serial port of the host server. To keep some order to the serial commands, I would like to have some sort of queue system that would only allow one user at a time to issue commands, with a time limit. When their time expires, the next user in the queue is given cont...

Serial Port communication with Arduino and C++

Hi, I am having a problem with a Serial Port communication between Arduino Nano and C++, even though the problem is in C++ side. Basically I want to send integers (or long,...) from the Arduino to a C++ program to be processed. First I did a test sending information from the Arduino to the computer using Matlab. The Arduino code is pr...

Returning a char from a function in C

I've tried everything Google-able, but can't seem to wrap my head around this. I'm trying to return a char and pass to another function with no luck. Do I need to do some sort of memory location? char hostname[] = "www.XXXXX.com"; uint8 ipaddr[] = {XXX,XXX,XXX,XXX}; char uri[] = "/api/Login/"; char key[] = API_KEY; //34903240...

Sending integer values to Arduino from PySerial

I need to send integers greater than 255? Does anyone know how to do this? ...

How much is 32 kB of compiled code

Hello, I am planning to use an Arduino programmable board. Those have quite limited flash memories ranging between 16 and 128 kB to store compiled C or C++ code. Are there ways to estimate how much (standard) code it will represent ? I suppose this is very vague, but I'm only looking for an order of magnitude. ...

finding the intersection of 3 spheres

im trying to find the intersection of 3 spheres in space but the problem is i need to use this math in a code which will have the x and y intercepts fixed but leave the z intercept a variable. for example: (x+6)^2 + (y+3.464102)^2 + (z-j)^2 = 12^2 (x-6)^2 + (y+3.464102)^2 + (z-k)^2 = 12^2 x^2 + (y-6.928203)^2 + (z-l)^2 = 12^2 any ...

Arduino, best way to talk with multiple SPI devices (LED drivers).

(this is more hardware design, rather than software question). Hi all. I plan to build an Arduino shield (board) with multiple LED drivers (TLC5941). They are accessible via SPI. The problem is that SPI communication wires may get loo long, causing signal interference. Guessing my board should get another cheap controller to talk both ...

Arduino Bootloader

Can someone please explain how the Arduino bootloader works? I'm not looking for a high level answer here, I've read the code and I get the gist of it. There's a bunch of protocol interaction that happens between the Arduino IDE and the bootloader code, ultimately resulting in a number of inline assembly instructions that self-program ...

Making a http POST request using Arduino

I am trying to post information to an API on a web project that I have created and hosted. I am not sure what the exact format is for the HTTP POST request. Every time I try I get HTTP 400 errors with the message that there is "an invalid verb". Sample Code: byte server[] = {"our IP"} .. .. client(server, 80) .. .. client.println("P...

Connect to SQL Server from Microcontroller (Arduino or Fez with .Net Micro Framework)

I'm looking for examples, tutorials, or just "this+this+this should work" for reading from and writing to a SQL server (2008) from a microcontroller such as the Arduino board. I've also looked at (and will probably go with) devices with the .Net Micro Framework such as the Fez Cobra. The Micro Framework does not include ADO. I'm sure t...

Accessing audio out in Windows

I am looking to write an Arduino script that uses whatever audio signal is going to the speakers to create a physical visualization. The Arduino is connected to the windows machine only through USB, so I need to use USB to find out what is being sent to the speakers. How would I access this information? ...

Arduino IDE on Android tablet

Hi am wondering if anyone knows of a IDE for my Android tablet that I can edit compile and upload sketches to my Arduino board via USB? ...