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.
0
votes
0answers
19 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
38 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
42 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
58 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
26 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++] ? ...
0
votes
1answer
45 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
508 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
58 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
100 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
42 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
85 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
117 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
22 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
33 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
78 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
58 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 ...
0
votes
3answers
185 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 ...
1
vote
2answers
58 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
80 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
74 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
59 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 ...
4
votes
1answer
65 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
55 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
62 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
71 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
176 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
41 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 ...
0
votes
2answers
100 views
Error: Function not declared in the scope
I want to make a timer library. The cpp file I have written is:
#include "avr/interrupt.h"
#include "Arduino.h"
#include "AllTimer.h"
AllTimer::AllTimer()
{}
void AllTimer::dofun(void)
{
TIFR1 ...
0
votes
3answers
193 views
Can I program Arduino with Python? [closed]
I know that I can program Arduino with python but is it possible to make every project, which can be completed by normal IDE?
1
vote
1answer
49 views
Multiple Definition of “_Vectors”?
I'm working on an arduino project that uses the GSM Shield and the eHealthSensor from Cooking Hacks. However I ran into an issue in which the interrupt vectors from the header/cpp files used are being ...
0
votes
1answer
25 views
Use website to communicate with Arduino WirelessProtoShield
I have a small office with wireless network, is it possible to make a wireless doorbell?
Practical example:
Arduino is connected to the main wireless network and has a static ip,
i have a website that ...
0
votes
2answers
48 views
how to make arduino as mind thought reader?
I'm trying to create arduino base mind reader... And for that I thought that EEG electrode connected to arduino and then the data send to arduino in 01 form .. But I facing problem in how to convert ...
3
votes
1answer
136 views
What are the benfits of global variables over static class members?
On an embedded system we use global variables often to keep dynamic memory consumption on heap and stack low. But global variables are also considered bad programming practice if they aren't used in a ...
0
votes
3answers
113 views
Program got so many errors about expected ) or ; before either
This is my first time to try program arduino, and I am clueless. I have a friend who told me about things work, and he told me the programming language is C (or similar to C) which we have learned in ...
0
votes
0answers
30 views
Leonardo with xbee shield?
I'm trying to get a XBEE shield to operate on an Arduino Leonardo. Usually i use the AltSerialLibrary to emulate an extra serial for the xbee. However since the Leonardo comes with two sets of serial, ...
0
votes
2answers
67 views
Controlling Arduino from Raspberry Pi
I am trying to control an Arduino Leonardo R3 to run some code when "triggered" from a Raspberry Pi, this would be in a loop so that it can be ran multiple times. I have setup the Raspberry Pi and ...
1
vote
0answers
51 views
Controlling Arduino from Raspberry Pi [duplicate]
I am trying to simply send a digital output from the Raspberry Pi to trigger some code on an Arduino. I have setup the Pi with the digital output working fine (tested using LED) however, I cant seem ...
1
vote
1answer
80 views
How to avoid the code interrupting itself?
I have this code, which I am using with a potentiometer to control the speed of a automotive fuel injector. In it, I have specified how long the injector shall stay open by using the delay functions. ...
0
votes
1answer
164 views
“void does not name a type”
Hi I'm new at this and can't figure out why I get this error "void does not name a type" on lines 3,5,8,26
// _2-5 set Debounce Button
const int BUTTON=2;
const int LED=9;
boolean lastButton = LOW;
...
0
votes
1answer
85 views
Serial.write() datatype issue in application @ xbee(API frame)
I have 5 int values which i want wirelessly send to another xbee. My problem is how do I give hexvalues (0x4E) in Serial.write() when i have an integers values (say current, voltage etc)?"**
Current ...
2
votes
1answer
65 views
Homemade soil moisture analog value reading jumping from 0 to max
I made a soil moisture sensor out of two metal poles, adjustable resistor, for a project I am making. The first run with the project the sensor worked amazing and gave clear and concise readings, ...
0
votes
0answers
96 views
Setting up Xbee Coordinator and router in API?
I am currently trying to get a remote xbee router API to send a frame to a coordinator hooked up to XCTU (Display frames received in XCTU window).
I am using the examples in the arduino's xbee api ...
0
votes
0answers
28 views
Recieve data only from XBee coordinator to router?
Currently I have a XBee setup with 2 routers and 1 coordinator.
The first router sends data to the coordinator, which is then supposed to filter the data and then pass on the respectively value to ...
0
votes
0answers
48 views
How to return the value in Arduino function (that can be read by the connected device)?
Right now I have an RC car program for Arduino. The code is like this:
void loop() {
distance = Dist.getDistanceCentimeter();
if(distance<=5 & distance>1)
if(Serial.available()) {
...
0
votes
0answers
65 views
Get the uploaded code from arduino by using arduino IDE 1.0.6
Recently bought a arduino device which already have program,
it is model AR-293D and I have already connect it with my PC(windows 7) through usb
when I open the IDE , It seems there is no function ...
0
votes
1answer
46 views
Sweep with two shift registers
I am working with 8 dual color LED's and 2 shift registers. My connections are in place. But I do not understand how to work with 2 shift registers.
So I am trying to make this: turn the first led ...