The process of designing and writing source code as part of a program (or sketch) for Arduino. Do not use for uploading to an Arduino board.
1
vote
1answer
21 views
Using A 4 Ohm Speaker With Arduino
I've salvaged a 4 Ohm, 1.5 Watt speaker from an old computer, and I was wondering how I'd go about getting it to work with my Arduino. I've heard of various amplifier circuits such as opamps, but I do ...
-1
votes
0answers
14 views
Digispark joystick example help
Firstly, I have successfully managed to to create a usb gamepad (one analog pad and eight buttons) using a Sparkfun Pro Micro. Now im trying to set up a single gamepad with a single analog pad (x+y) ...
3
votes
1answer
299 views
port manipulation using C code
I'm trying to manipulate the ports of Arduino using C code. I have attached an LED in Pin8 and a tact switch in Pin13 (with a pull down resistor). The code works fine, and the results are printed on ...
1
vote
1answer
45 views
Use object of other class within class
I am writing a class for a project which will take care of handling any LCD updates for my project. The way I want to handle this is to initialize the LCD object in my main file, and then pass the LCD ...
0
votes
0answers
11 views
Getting dumb values from arduino when connected hrough PLX DAQ software for storing real time value
The load sensor i am using is https://www.sparkfun.com/products/9375
Software program i downloaded is from this site http://robottini.altervista.org/arduino-and-real-time-charts-in-excel and the ...
0
votes
0answers
15 views
Home-Made EL Tape chaser
I am working on a project involving 14 sections of EL tape. This is a circular array that incorporates a chaser effect with two lights lit on either side. originally I had found a small diy LED ...
1
vote
1answer
39 views
I want a couple of servos to listen for P.C. input (data from OSC protocol), can I bypass having to use an Arduino?
...and whack a stripped usb cable straight into a prototype board?
by bypass having to use an arduino I mean any kind of sheild? polulu would be perfect but im trying to avoid needing any of this.
...
0
votes
0answers
22 views
How to use “enum” within Arduino IDE? [duplicate]
When I try to write a enum function it looks like arduino IDE does not recognise it.
Any suggestion on how this works?
0
votes
1answer
68 views
Arduino TCP communication with android phone
I am trying to communicate Arduino UNO with android phone, What I trying to is
1) android device post a string to arduino
2) arduino post a integer to android
So far I can post message from ...
1
vote
0answers
23 views
SAM3X8E (Arduino Due) Pin IO registers
How does IO registers of Arduino Due work?
On Arduno Uno just set DDRx, then PINx to read, PORTx to write, I'd like to do the same thing with an Arduino Due, but it has many more registers, such as ...
2
votes
1answer
99 views
How to add hysteresis to threshold values?
This code compares the analog input value against two thresholds, having three voltage regions. Then it will turn on an LED according to what region the read voltage is in.
The problem is that when ...
0
votes
1answer
19 views
Vibrating motors with different intervals
For my project, I have 3 ultrasonic sensors and 3 vibrating motors; the motors need to buzz for a small amount of time, then wait for a specific time that corresponds whith the range of the ultrasonic ...
1
vote
0answers
29 views
Detect external ground on an input pin
I am making a bike alarm for my bike. I haven't started yet.
Basically, I'm thinking of a pin to be connected to the metal post (to which the bike is locked.) I want to detect if that connection (to ...
1
vote
1answer
30 views
Trying to track down macro or #define values, possibly in arduino preprocessor
In reading various code I stumble across symbols that seem to be the result
of #define or other macro like symbols that I cannot find just by tracking
through the code ( including its chain, if any, ...
0
votes
1answer
38 views
arduino yun sensor reading into MySQL [closed]
how to post arduino yun reading into MySQL is there any library file are available or we can directly posted the arduino yun reading into MySQL.Please tell me what are the methods to follow post ...
0
votes
1answer
37 views
How to return a message when calling by a TCP connection?
I am working on a communication between android and arduino board.
The android make a TCP connection with the board and successfully send some string to the board.
The problem is , there is a int ...
0
votes
1answer
82 views
How to make the motor car move left-forward / left-backward/ right-forward/ right-backward
I recently using the arudino uno to make the motor car. And I successfully make it move forward / backward / left / right
void forward(void)
{
analogWrite(EA,254); //speed 0 - 255
...
1
vote
2answers
71 views
How to program ATTiny85 running 3.3V
I have a working project built around ATTiny85 on a breadboard running at 5V. Now I want to move this prototype on a PCB where it will be powered from batteries. All components used are capable of ...
-1
votes
0answers
216 views
how am i going to clear this error?
Problem uploading to board.
See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: ...
0
votes
0answers
20 views
ultrasonic sensor program SRF005 on Arduino Uno [duplicate]
can someone explain to me that program?
int duration;
int distance;
int srfPin = 2;
void setup()
{
Serial.begin(9600);
}
void loop()
{
pinMode(srfPin, OUTPUT);
digitalWrite(srfPin, LOW);
...
-1
votes
2answers
43 views
fancy arduino IDE [duplicate]
Do you know an IDE that is Arduino compatible,
with :
Black background, white hurts my eyes
Some auto completion features mabe ? And also one which lets you minimise brackets,
Xcode like.
A ...
0
votes
2answers
50 views
Internet of Things at home only
My question isn't specific to Arduino but can concern Raspberry Pi and all Internet of Things homemake projects.
As I'm preparing a personal projet with sensors, data storage and ...
0
votes
2answers
114 views
Connect Arduino via TX RX Pins to Computer's USB Port
I want to avoid using the big USB B connector to program my Arduino Mega. Since there are those RX TX Pins I thought, it would be possible, to connect my USB - Wires from my PC directly to those RX TX ...
-1
votes
1answer
32 views
Can't figure out the error to this code
I've written up this very simply code to control transistors in an inverter circuit. The editor is flagging up errors which I can't see myself. I'm pretty new to Arduino programming but it's very ...
1
vote
2answers
72 views
What do these operators do?
Going through the "timeouts" example of the elapsedMillis library (https://github.com/pfeerick/elapsedMillis) I found the following statement:
digitalWrite(LEDPIN, flashPattern[ledIndex++] ? ...
1
vote
2answers
93 views
Programming arduino with Objective-C
Can you use Objective-C to program Arduino? I know you can use C/C++, and Objective C is theoretically a subset of C/C++, so would it be possible?
1
vote
4answers
555 views
New to Arduino: Should I learn C, C++ or both (C & C++)?
From what i've researched here is my thoughts on both
C++
I heard that you can create libraries using C++ in arduino. And you can use the Arduino IDE to do that stuff. Here is the proof
...
0
votes
1answer
86 views
Pulse measurement
I am currently doing the project in pulse measurement using arduino yun. I am using pulse sensor is SEN-11574 .
When I verify the code I get this error:
Arduino: 1.5.8 (Linux), Board: "Arduino Yún"
...
0
votes
0answers
31 views
Can i only use Atmega 328 in standalone mode? [duplicate]
I have already prototyped my product, and i want to use arduino library in my printed circuit which includes ATmega32u4 (the MCU in arduino leonardo). Can i use the library? if i can how?
(i know the ...
2
votes
3answers
110 views
Can i use arduino code, without using arduino board but just using MCU included
I am developing a product, and to ease my job i am planning to use MCU inside the arduino with the library of Arduino.
Since all the registers are already defined inside the library, and all required ...
-1
votes
1answer
54 views
modbus slave ID setting
I have small problem in setting device ID for Mosbus slave arduino. Here is simple example
In Modus library; device ID being configure hardcode while program. This code works for Me.
Modbus ...
0
votes
1answer
190 views
arduino program got error expected //primary-expression before ')' token error: //expected ';' before '}' token E
#include "pulse-sensor-arduino.h"
#include "Arduino.h"
#define PulseSensorbegin
int pulsePin = 0;
int blinkPin = 13;
int fadePin = 5;
int fadeRate = ...
1
vote
3answers
176 views
Make a PC graphical interface for Arduino - Any easy software? [closed]
What's the best/easiest software to make a PC-Arduino interface? Ideally, I need to create a .exe that shows up a simple graphic interface, where the user can display data acquired from sensors ...
0
votes
0answers
34 views
Trying to make zumo robot stay within dark lines like a track of electrical tape. Doesn't seem to register turns fast enough
Trying to make my zumo robot stay within a track, made of electrical tape. Basically when the right or left sensor detects the tape ('sensors > sensor threshold' after going from grey surface to ...
2
votes
0answers
36 views
Where can I find beginner tutorials for the Arduino? [closed]
I am new to all of this so anything is helpful.
1
vote
0answers
114 views
Waking Raspberry Pi on time schedule using Sleepy Pi
I'm have a Sleepy Pi and am having extreme difficulties trying to program a wake/sleep cycle. Sleepy Pi is an Arduino board with a RTC. My ultimate goal is for a time-lapse project.
I have the ...
0
votes
2answers
72 views
Arduino UNO does not get recognized by PC(no USB connecting sound), also TX and RX not blinking, neither are lit
I am trying to build a robot, which needs motors to roll around. So I was trying to control two DC motors with H-Bridge that comes with Arduino StarterKit(H-bridge motor driver [L293D]). I used Sketch ...
1
vote
3answers
407 views
Can't program Arduino via Bluetooth (HC-06) with a Mac
I bought a HC-06 Module for my Arduino Uno the other day, yesterday it arrived and I'm having trouble using it with the Arduino IDE.
I set it up, connecting 5V, GND and RX/TX crossed. After a bit of ...
2
votes
2answers
65 views
Programming an Array of ATTiny
I am designing a board for my electronics project and i am using a number of ATTiny85 for it. The ATTiny's will be SMD so i will not be able to remove them for programming.
Moreover all of the pins ...
2
votes
1answer
107 views
Random(min,max) Function only giving ~50 range no matter what the values?
I can't get the min,max range to function properly. Monitoring the serial, only gives out ~50 difference from the min. I then added truerandom.ino to try to fix, but no help.
const int ledPin = 13; ...
1
vote
1answer
86 views
Wake up atmel-328 with external interrupt.
I have a atmel-328 with a xbee .
I want to reduce the consumption of the battery.
So I have kept the ardunio in sleep mode and it wakes up on a pre set time using jeelib laibrary.
I have also kept ...
0
votes
1answer
68 views
Turn Arduino into a Bootstrap Loader for MSP430 programming [closed]
How can I turn my arduino into a USB Bootstrap loader for programming the MSP430g2xxx series chips?
0
votes
1answer
53 views
Question about viability of building a Bill Counter machine
I have a need for a bill counter at my current job, but besides counting bills we also could use a machine to count admission cards.
The idea is to either buy a bill counter machine (like those that ...
6
votes
2answers
100 views
How can Arduino source code be tested automatically (continuous integration)?
I'd like manage my Arduino source code (projects and libraries) under source control with continuous testing. How can I automatically compile the code with continuous integration tools, to make sure ...
0
votes
0answers
98 views
TCS 230 colour sensor using arduino
i m working on a robot that can sense different colours and then follow a particular path accordingly.previously i was using "pulseIn" function to read the out frequency but the results are not very ...
0
votes
0answers
25 views
Buffer serial data till condition met?
I have an Arduino attached to an accelerometer sensor. I'm looking to detect the motion of a head shake sideways.
While I am able to stream the readings from the sensor, I am unsure how to buffer ...
0
votes
1answer
68 views
coding standards for bigger projects
I'm starting a decently sized project around arduino/ATMELavr, and I came to wonder if there are any commonly accepted C/C++ coding standards or style guidelines specifically aimed at embedded ...
0
votes
0answers
89 views
7 Key Educational Piano with Capacitive Sensor
I am working on a project for grade 10 computer science. I am supposed to make a piano that has 7 keys using a capacitive sensor, and the piano is supposed to teach you songs like Twinkle Twinkle ...
0
votes
3answers
177 views
Programming Arduino
I'm new to electronics. Professionally I'm a software developer. I want to know whether it is possible to program Atmel AVR 8-bit and 32-bit Microcontrollers using Arduino IDE. If yes could any one ...
0
votes
0answers
58 views
Enabling quicker and more accurate MindWave Mobile detection?
Currently I am trying to get a Mindwave Mobile device to operate with an arduino uno. I'm following the guide here.
However the sample code given doesn't work very well. I have been trying to get a ...