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.
-4
votes
0answers
25 views
Vehicle tracking system
I want to do a vehicle tracking system. I'm using an Arduino Uno, and a SIM900 and GPS module. I am using this code. Can anyone help me find what's wrong?
Source code is:
#include <TimerOne.h>
...
0
votes
0answers
20 views
Programming Arduino MEGA2560 using Arduino Uno
I have already used the Arduino Uno to burn the bootloader on the Arduino MEGA2560 board, and I can program the the Arduino MEGA2560 board using the USB connection to the computer. However, I am ...
-2
votes
0answers
30 views
Programming Arduino Nano CH340G Error
I have an Arduino Nano from China, that uses a CH340G chip rather than FTDI. I installed the appropriate drivers (on OSX), but now have come across an error. Below is the results of trying to burn a ...
0
votes
2answers
43 views
The most effective way to format numbers on Arduino
I made a big search about how to Format Numbers with the Arduino. I want to format unsigned Longs into a String in this format: "23,854,972".
The most of the snippets I found work only with the ...
0
votes
1answer
26 views
how to use capacitive touch keypad without using CapacitiveSensor.h Library
i want to use multiple capacitive touch keypads with arduino uno but number of IO ports are not enough. So I decided to use MSP23S17 port extender. Now i have to find some methods to sense the touch ...
0
votes
1answer
48 views
How to split a string into substring Arduino
I'm about identify myself stupid, howcome I couldn' t figure out how to split a string into substring using arduino, even after 10 days of searching. The number is fact... So, As Mr.Arduino.cc says: ...
3
votes
1answer
255 views
OOP vs procedural programming on arduino
It seems like the majority of Arduino applications are written without using classes / objects. Is there a reason for this? Does is slow down the Arduino or somehow present undesirable behavior?
0
votes
0answers
4 views
Arduino 1.6.X on NetBSD/FreeBSD
I run arduino-mk 1.0.1 and would like to know if someone has had any luck getting 1.6.X working on NetBSD/FreeBSD. If I understand correctly, its core is java, and I can run most java programs. Are ...
0
votes
2answers
33 views
Problem with code for IR remote controlled robot
I recently wrote the code for this project but it's weird because when I press button on the remote nothing shows up on the Serial Monitor and consequently the robot doesn't respond. I know it's not a ...
0
votes
1answer
34 views
Using logical operators
This is a snip it of code from a program I am writing. I have the program turn an LED on and if a button is pressed when the LED is on I want it to add to a counter and print the counter value. The ...
0
votes
1answer
11 views
arduino tft lcd program [on hold]
I have an arduino with mega 2560 and a 3.5" TFT LCD.
I hardly try to find a code for it since I don't know how to write one.
but all of the sources are written for arduino uno.
can anyone give me a ...
0
votes
1answer
22 views
DMX dimmer appears to receive data from Arduino but connected lights do not respond
I'm trying to control a DMX dimmer (eurolite ES-12 IEC DMX Switchback) through an Arduino Mega. In an earlier test, we were able to make one RGB DMX light run through the color spectrum. Now, a ...
0
votes
2answers
23 views
How to use 2 motor drivers with one iduino uno?
:) I'm just new to this field. I already asked a lot of people but i still cant find the answer on how to make this work. http://www.e-gizmo.com/oc/index.php?route=product%2Fproduct&product_id=491&...
0
votes
3answers
37 views
Is the Arduino bootloader really the Atmel bootloader? Can I use Flip to upload?
I've been asked to do a small project using an Ada BlueFruit board. It has a ATMega32U4. The 32U4 comes from the factory with a bootloader pre-installed. I've never used an Arduino before, but I have ...
0
votes
4answers
35 views
Can't use enum as function argument
I declared my enum and called it Dir. I wanted to use value of that type in my function Move(). Here's the code:
enum Dir
{
forward = 1,
backward = 2,
left = 3,
right = 4
};
void Move ( Dir ...
1
vote
2answers
39 views
How do I split a number into individual digits?
How would I split part1 into 2-3 digits and put them into num1, num2, and num3?
int FMSTATION = 10250;
int update_display() {
int fm_station = FMSTATION ;
int part1;
int part2;
part1 = (...
0
votes
1answer
26 views
Homemade fan - motor madness
i hit the forums again with my homemade fan idea, this time i got the right servo. everything works fine until i try turn up to the 2nd speed of the servo, the buttons just go mad and the response in ...
0
votes
3answers
35 views
Installing Pyserial
I will be running my CNC Via Arduino UNO R3, so i have found out that it runs on GRBL and that i need to load Python and Pyserial and a graphic interface.
Loaded Python 3.5.2, no problems, opened dos ...
0
votes
1answer
10 views
Servo City PT785 with HS785 servo. help
I have acquired a Pan Tilt system that uses the hitec HS785 servos. These servos are (3.5 to 6) multi turn "SailWinch" servo. I was hoping someone here has Arduino code that runs them full range. I am ...
-2
votes
1answer
30 views
Get hardware usage of Arduino Uno or Intel Galileo [on hold]
Is there any way to get hardware info of Arduino or Intel Galileo board programmatically like
1) CPU speed
2) Flash Memory available
3) Sram available
4) Current CPU usage etc
Thanks
0
votes
1answer
21 views
Why does my servo execute an action in the beginning when the odds are almost 0?
I made a servo motor turn if the result of random(0, 10000) is less than or equal to 1. If that is the case, the motor turns to 130 degrees, to 50 degrees, and then to default position(90 degrees). It ...
0
votes
1answer
39 views
How can I make a servo turn an ultrasonic sensor without using delays?
I am making a RC robot that will have multiple sensors and will display the data on an lcd screen. It will also have a mode where it will avoid obstacles, using an HC-SR04. When the sensor is within ...
0
votes
1answer
76 views
how to run servo 180 degrees and stop
im creating a pir motion sensor doggy door the problem im having with it is it runs 3 times ive figured out how to pause when reaches 180 but not how to stop.
i was thinking i could use detach my ...
0
votes
0answers
22 views
Sound module WT588D-28P Library Development
I have a WT588d-28p 32M sound module that is currently using a WT588D-16P library.
I do not have the expertise to modifie the 16P library up to a 28P version, but I have accumulated a large amount of ...
-3
votes
0answers
59 views
Coil winder design using Arduino
I have been working on a design of a coil winder using Arduino. I had to take into account the number of revolutions. So I decided to use a stepper motor. After researching through the net I came up ...
0
votes
1answer
25 views
How to convert char[] to int with fail\success control?
this is more like C question, but i failed to google this.
i expect a command parameter in char[], but there may be no argument passed at all, so i need to try to parse this char[] to int and if ...
0
votes
1answer
23 views
Servo Speed Changer with Buttons
ok so yesterday i was in trouble with the buttons, with help from you i got over it and everything worked fine with the 1st speed of the servo, then i added the other 2 speeds and it looks like it all ...
0
votes
1answer
17 views
How do you change the state of an image on a TFT display when the associated pin changes state?
I just recently resolved my problem on getting images to load on to my TFT display via the SD card. Thanks to UTFT_SdRaw!!! it's by far the easiest to use. For a novice like me, its been a real feat. ...
1
vote
1answer
21 views
How to detect cancelled download?
I have a server with files that may be downloaded.
How do I go about detecting when a download is cancelled by a client?
The function that handles reading files for download:
void readFile()
{
...
0
votes
0answers
29 views
Button used to add or substract from “x”
I'm using an Arduino UNO and im trying to make with 2 push buttons 3 diffrent speeds for a motor. I started with the base code for the buttons and then im gonna add the motor but i kinda got in a bit ...
0
votes
1answer
29 views
Piezo sensors for intruder location
I am working on a project using 4 piezo sensors, and I want to be able to take 4 signals integrate them and provide an out put to an LCD pinpointing the location of movement within the area of the 4 ...
3
votes
2answers
88 views
How to volunteer for arduino projects?
I have master in electronics and IT. I know various microcontrollers programming in c. I want to volunteer myself to learn for arduino Projects especially for low Level Drivers etc. Can somebody ...
1
vote
2answers
59 views
How can I reduce the redundancy of this code, so one function can perform the task of printing on Serial and Softserial?
void Multi_print (String str)
{
Serial.print(str);
mySerial.print(str);
}
void Multi_println (String str)
{
Serial.println(str);
mySerial.println(str);
}
void Multi_parse_int (int value)
{
...
0
votes
0answers
24 views
Arduino due programming with notepad+
I use Atmel Studio 7 to program the Arduino (due), but i' m a bit frustrated by it and I'm interested to check an alternative solution.
Can anyone guide me to how difficult will it be to use notepad+ ...
0
votes
1answer
44 views
Convert a Double to an UnSigned Char
So, I'm working on RedBear Blend Micro V 1.0, and I must use the function:
ble_write(Serial.read());
To read some input from the serial monitor(Input being stuff I type in the Serial Monitor) and ...
0
votes
0answers
53 views
Help me How to use DALI protocol with Arduino (Mega 2560)
I'm new to this forum, but like many of us, doing project by project with Arduino, we need some help here earlier or later... So here I'm, and I hope you could help me with this.
First of all, I'm ...
0
votes
1answer
32 views
Programming an Arduino Mini 05
So, I recently bought an Arduino Mini (5V, 16MHz), and a USB to Serial Converter.
Provided are the links to both the products:
Arduino Mini,
USB to Serial Converter
Now, I tried programming the mini ...
0
votes
2answers
34 views
changing from long to bytes and vice versa
I want to converse data from long to bytes and vice versa. After searching around, I sticked together some code, which seems to work (the same code works for int and floats as well).
The long value ...
0
votes
3answers
70 views
Increase the resistance of a photoresistor with increase in light intensity
I'm building a laser tripwire of sorts and instead of shutting up when the laser points on it (which is essential for my project) it beeps louder.
Here's the code
int buzzPin = 11; // buzzer ...
0
votes
2answers
78 views
What's on an Arduino board? Can i build one of these boards myself?
My question is: What is on an Arduino board besides the microcontroller?
1
vote
4answers
56 views
which is the number of bits in a float variable
Since the maximum value of a float variable is 3.4028235E+38, shouldn't it represented with 128 bits instead of 32? (2^128=3.4028235E+38).
0
votes
0answers
36 views
Good guides to learn Arduino preferably with C and without IDE
I have played around with Arduino Uno and browsed through some basic introduction guides. I really like that it has been made easy to start programming via IDE and you get the led blinking in no time. ...
0
votes
1answer
31 views
problem with bitwise OR
I have this code, in which I try to "glue" four bytes in order to construct an unsigned int. I shift left the bytes and "add" them using the OR operator.
unsigned long number1;
unsigned long ...
0
votes
1answer
23 views
How could I display a iRC Chat on a Arduino i2c LCD
OK so how could I go about putting a iRC chat on a LCD?
I'm kinda new to arduino and LCDs and this seems like a cool project to do :)>
-Thanks
Here is code I'm using to display stuff on the lcd
...
0
votes
2answers
35 views
Bizarre behavior, loop function affects setup function
I've connected two stepper through two uln2003 chip. And wrote a small class to control them.
The class works perfectly and I'm able to control the steppers (rotate the CW and CCW).
My main code ...
1
vote
0answers
61 views
Arduino Quadcopter problems
I'm currently trying to make a quadcopter flight controller based on the Arduino Uno, and I've managed to make everything work for one axis by printing the values of two of the motors, except now that ...
0
votes
2answers
53 views
PCINT with my arduino UNO says redefinition of 'void __vector_4()'
So i'm working on a quadcopter controlled by the arduino UNO, and focusing in pin interrupts for the reciever. This is the code for the reciever.
unsigned long timer[4];
byte last_channel[4];
...
1
vote
4answers
62 views
Good book/reference for AVR coding in pure C/C++?
Can someone recommend a good book/reference for going vanilla (i.e. not using arduino simplified language) on e.g. ATtiny85? I will need to use the equivalents of analogRead() and digitalRead() quite ...
0
votes
1answer
74 views
How can you speed up the ADC on an ATtiny85?
I'm reading input from a camera and trying to reach a fast frame rate. Problem is my ATtiny85 has a pretty slow conversion time (65 - 260 µs Conversion Time). Is there any way to make this faster? I ...
1
vote
1answer
40 views
Is there an easy way to turn integer values to pixels?
I'm working with a black & white camera and it gives me integer values to represent the amount of light hitting the sensor. Very bright is 1023 and totally dark is 0. The values are printed ...