Arduino is an open-source electronics prototyping platform based on easy-to-use hardware and software. It's intended for anyone making interactive projects.

learn more… | top users | synonyms

0
votes
2answers
39 views

How do I compute the 16-bit dot product of two arrays containing 8-bit values?

Another assembly question! Using an Arduino, I have to write a function in Atmel AVR Assembly for my computer science class that calculates the dot product of two arrays and returns it as a 16-bit ...
0
votes
1answer
15 views

What's the used format for decimals in the dht11 sensor?

I am using a dht11 sensor and get the raw bits, where the first 8 Bits are the integral of humidity and following 8 bit the decimals of the humidity. The next 8 Bits are the the integral of ...
0
votes
0answers
4 views

send data from arduino yun to mysql

How to get data from Arduino to mydatabase(like mysql) use python and HTTP GET request method(requests or urllib and so on). Because i just know to use python to get the url and use bs4 to analyize ...
0
votes
1answer
62 views

Watchdog resets AVR Atmega 1281 continuously once triggered

I am using a modified Arduino board: Gizduino X with Atmega 1281 MCU chip on-board. The application is uploaded to MCU using Arduino IDE programmer. I attempted to use the Watchdog timer reset feature ...
0
votes
0answers
7 views

arduino's code from normal lcd to graphic lcd

I have problem which is related to my arduino project. now long story short, i have a code for the project but only for an LCD display while the teacher told me to replace the LCD display with a ...
0
votes
1answer
14 views

dependency injection in Arduino

I've started working with Arduino and I want to do a time share system so I do not use the delay command. I have a problem when I try to register objects that inherit from another. Here I have a ...
0
votes
1answer
21 views

Arduino/c++ - Passing PROGMEM string to class using F() Macro

Ive done some googling and I cant find a solution to my problem. Im not sure if Im attempting to use the F() macro improperly in c++ or if I misunderstand something fundamental. The arduino IDE ...
2
votes
3answers
9k views

Simultanously Reading Two Analog Inputs with Arduino

We are simulating an oven. The potentiometer sets the desired temp and the sensor reads the current temperature of a little copper plate that is "the oven." Both the temp sensor are connected to ...
-6
votes
0answers
47 views

Best way to format a function result to 2 digit [on hold]

I'm using an Arduino with an LCD Display to display the current time (LiquidCrystal lcd(7, 6, 5, 4, 3, 2);) If I'm using lcd.print(second()); it works, but when the second = 1, its displaying ...
0
votes
1answer
11 views

Arduino for Christmas light control - invert code

I have an arduino uno connected to a 8 channel relay board. I want to use it with Vixen 3. When I upload the code all the relays turn on. So, when i send a signal in Vixen the relay turns off. I need ...
0
votes
0answers
5 views

How to use respoce from sim900 module?

Thanks in advance. I am using arduino and sim900 module to send my sensor data by SMS. Now I want to check SMS left in my sim card. I'm using below code to do that.("AT+CUSD=1,\"*451#\"\r"). I want ...
2
votes
1answer
500 views

Keyboard and Bluetooth killed when establishing FTDI USB Serial connection

Okay, when I establish a connection using LabVIEW or Python to my Arduino Duemilanove (ATMega328) either my Bluetooth or keyboard is killed. I am simply trying to establish a connection to /dev/cu....
1
vote
1answer
16 views

Cannot wakeup MIFARE 1k card

What we need to do We need to detect both the presence and absence of an RFID chip. We intend to do this by continually checking for a card. If one is there, we read it and confirm which it is. If ...
0
votes
1answer
51 views

Error during compile of Megablink demo using freeRTOS for atmega2560 using WinAVR

The following RTOS .c files compile fine during 'make': task.c, queue.c, tasks.c, croutines.c, list.c Then I get the following error: serial.c: In function 'xSerialPortReInit' serial.c: 665:...
1
vote
0answers
19 views

why IR receiver keeps recording IR signal of value zero when no IR signal has been transmitted?

I am currently working on a project whereby i have 2 Arduino connected via I2C. An Arduino mega 2560 which is the master and an UNO which is the slave. An IR receiver is connected to the UNO which ...
3
votes
4answers
821 views

Arduino as slave with multiple i2c addresses

I would like to use an Arduino as an i2c slave. But I require that the Arduino acts as multiple devices by registering itself with multiple i2c addresses. This is probably not something one would ...
-2
votes
2answers
48 views

[FIXED]Arduino alternative for delays?

What I wanted to do is to run 2 traffic lights simultaneously(ex. North and South).Is there an alternative for delay besides millis? I tried to use Blinkwithoutdelay but as a newbie its very ...
2
votes
0answers
22 views

Proper implementation of C# <-> Arduino serial communication

I'm trying to communicate back and forth with an Arduino via serial through a C# program. I've got a basic working example, but it's not pretty and not fault-less. I've included it at the end. I have ...
-5
votes
0answers
33 views

Arduino - Count days until Birthday [on hold]

I want to make a program with Arduino which counts the days until birthday. for e.g.: "24th of July and 5 days until Birthday" "25th of July and 4 days until Birthday" How do I get this ...
16
votes
17answers
126k views

How to “reset” an Arduino board?

I've uploaded a sketch to an Arduino Uno whose loop is something like this: void loop(){ Serial.println("Hello World"); } So, now, I can't upload anything anymore, because the IDE says "port ...
0
votes
0answers
8 views

why IR receiver keeps recording zero when no signal is received?

I have written a sketch in order to record IR signals. However the IR receiver keeps recording a value of zero when no signals are being received. Is it because of a hardware issue or on the software ...
-3
votes
1answer
17 views

Arduino code for a button and a led

I have a question. In my code (Arduino), the led is high as long as I push on a button. int led=12; int button=4; void setup() { // put your setup code here, to run once: pinMode(led,OUTPUT);//...
0
votes
0answers
12 views

How to calculate where a bullet impacts on a wall (a REAL wall and bullet)

I am building a very exciting project, and I am creating this post to get new, fresh and crazier ideas. I have a big wall, and I am shooting at it. I need to calculate the exact X and Y coordinates ...
-2
votes
0answers
16 views

java code to send integers to arduino via bluetooth using hc-05

I want to write a Java code to send integers to Arduino via Bluetooth to change the angle of the servo motors. It's my first time to use Bluetooth in java. How to use Bluetooth in java?
0
votes
1answer
22 views

Arduino working with strings

I am trying to get my arduino uno to receive commands via the serial monitor. The command will always be sent as #RANDOM_COMMAND%, so I need to remove the # and the % from the string. The code below ...
0
votes
1answer
28 views

Are there instructions for the Arduino PID code?

I have the Makeblock Ultimate 2.0 kit which uses the Arduino MegaPi board. There is an Arduino PID example. But, there is no explanation of what the commands are and what the numbers are. Is there ...
-2
votes
1answer
13 views

How to send ir command for my tv [on hold]

I want to make an application. The application will have a TextBox and a button. I want to convert the hex code entered in the textbox into a frequency and send it with ir. What am I gonna do with ...
-7
votes
0answers
55 views

Rewriting C in C++ or vice versa [on hold]

I want to use an Arduino Library written in C++ for another MCU whose code I wrote in C. Which way would be the easiest, with the least debug steps, transforming the arduino c++ back into C or ...
0
votes
1answer
14 views

function with .DATA how to convert to byte array

Sorry for the Noob Question. I have a library - RFM69 - https://github.com/LowPowerLab/RFM69 This provides the output as .DATA this appears to be a built in type? Second I am trying send .DATA as ...
-8
votes
0answers
21 views

Arduino C - Button Input Code required

I need a code which can read how many times someone pushes a button with arduino button and put that amount into a variable. Does anyone know?
1
vote
1answer
41 views

Xamarin Forms/Arduino, how to send and receive data via bluetooth BLE?

I have just started working with arduino/bluetooth and i am now looking to work with it and send and recieve commands via an app. I am currently working with a bluetooth BLE device that I want to ...
1
vote
1answer
25 views

Difference between Web Socket in Raspberry Pi and Arduino

I use Web socket between Raspberry Pi and server and it works perfect, as the theory of web socket. But when I search for a web socket for Arduino I found a lot of libraries and may be all of them ...
1
vote
1answer
20 views

WebSocket Get using Arduino

I use this code to get a string from server using Web Socket Get on Arduino. void LedState() { StaticJsonBuffer<200> jsonBuffer; String leddata; if (client.connected()) { { } ...
0
votes
1answer
25 views

flex sensors with arduino

I have a flex sensor connected with an arduino lily pad and an 47k ohms resistor. My problem is that I am unable to get the consistent values from flex sensors: sometimes, i get very strange readings,...
0
votes
1answer
9 views

File reading from Arduino Ethernet shield

I am trying to read the binary data of a picture from an SD card on an Ethernet shield with an Arduino Uno, then send the binary data over an Ethernet cable to my computer. I get a weird error message ...
0
votes
0answers
70 views

How to Store temporal data in Firebase

I make measures every minutes and I'm searching for a good way to store these measures in Firebase. I was first thinking to store every value In a different autogenerated Key measures : { KEY1 : ...
1
vote
1answer
24 views

How to loop through variable names on Arduino?

I'm trying to make a loop that triggers a list of arrays I've declared. But nothing seems to work so far. The goal is to let the loop create an animation on Neopixels. The arrays are keyframes of ...
0
votes
0answers
11 views

Sending information via I2C between two Arduinos with Wiegand RFID reader connected

I´d like to ask one question about sending information via I2C. I have two Arduinos connected via I2C. One of them has Wiegand RFID Reader connected. My point is to read RFID tag and send information ...
-2
votes
1answer
21 views

Please suggest a tutorial for Raspberry PI 3 as modbus master and Arduino UNO as modbus slave [on hold]

I want to implement a temperature acquisition system. I have an Arduino Uno as modbus slave and a RPI 3 as modbus master connected through serial connection. I want to use modbus as protocol in ...
2
votes
0answers
757 views

How to make a http 'GET' request with esp8266 and arduino?

I have arduino mega2560 which is connected to a WiFi network using esp8266. and I have a server running on https://taub-ramym.c9.io (IP 126.128.47.440) which has thees functions (that changes a flag ...
0
votes
2answers
49 views

Arduino sending data to ESP8266 using Arduino IDE

Goal: Send two integer values from Arduino Nano to internet via ESP8266 using Arduino IDE I am new to embedded programing and currently working on a project which sends some integer value from ...
1
vote
1answer
25 views

serial command to debian/armbian to shutdown system

since my other take on this did not yield any results, I did the following: I have an Orange Pi PC which I want to shutdown once the Arduino Lenoardo connected to it via USB gets an input on Pin 2 via ...
-1
votes
3answers
36 views

Can we run python on arduino?

I just want to ask that can we run python on arduino? For example on Arduino uno R3 model. I want to order that model in these days but I am not sure that we can run or not.
-2
votes
1answer
22 views

Arduino Serial.read doesn't work

My Arduino Mega (with CH340 but all the drivers needed installed) has stopped reading from the serial port. Doesn´t matter what I write it keeps saving number 50. I have tried with simple examples ...
0
votes
0answers
9 views

converting from TMRpcm.h to WaveHC.h for arduino waveshield project

I found two simple sketches for the arduino waveshield (i use adafruit version 1.1). The first uses the TCRpcm.h library and the second sketch uses the WaveHC.h library. My goal is to take the part ...
-1
votes
4answers
89 views

Use of structure in C programming [on hold]

I am a newbie in C and I can not understand the point of using structure in C. Could someone explain to me what is the point of defining a structure in C programming? For example this code(written ...
0
votes
1answer
20 views

Reliably kick Arduino Micro to bootloader

I have a Arduino Micro connected via usb to my pc, showing up as /dev/arduino. Now when I want to program it (it currently has the default bootloader from Arduino) I have to boot it into the ...
0
votes
1answer
23 views

avrdude: ser_open(): can't open device “/dev/ttyACM0”: Device or resource busy

I am Linux Mint user.I am dealing with Arduino Yun.I am compiling Arduino program.After that I am uploading to Arduino Yun.Then I get these error.Can you help me?
-1
votes
1answer
23 views

Arduino ESP8266 Socket.io Issue

I want to make a WebSocket inner ESP8266 but i cant do it. I used this link for made it. https://github.com/billroy/socket.io-arduino-client I get error inner SocketIOClient.h The error is: In ...
-3
votes
0answers
50 views

While loop stops with double same digit input [on hold]

This very simple loop stops in "11". Why? It also stops with "22" or "33". You can test it by downloading it into any arduino. String unArray[100]; void setup() { Serial.begin(250000); //Open ...