All Questions

Filter by
Sorted by
Tagged with
-1 votes
2 answers
173 views

MAC address arduino

The MAC address is hardwired onto the NIC card when a device is manufactured. How is it that, we get to set a 48 bit MAC address of our choice while programming the arduino ?
user avatar
1 vote
1 answer
97 views

Writing new functions into progmem after main program is burned

I've been experimenting with writing very basic operating system-like programs on the Arduino, and so far I have been running user-defined programs on a small virtual machine I wrote. This has been ...
Michael Stachowsky's user avatar
0 votes
2 answers
305 views

Timer for how long button is not pressed

I would like to timer for how long a button is not pressed. So actually if(buttonState == LOW 'for two seconds') than execute the code that comes after it. But the problem is while the user is still ...
Peter rosevelt's user avatar
3 votes
2 answers
851 views

How to read RPS for fast rotation with status change method in Arduino?

I'm trying to calculate the coming RPS from rotary encoder. I am trying to get it by checking the status with digitalRead. However, I can not get more than 6 RPS. Any solution? I will be obliged for ...
zalt's user avatar
  • 93
0 votes
1 answer
2k views

How do I run multiple vibration motors from an Arduino Mini with PWM?

I'm building a project for my Physical Computing class that involves 4 vibration motors for varied haptic feedback based on serial input via analogRead. I have each coming out of their own pin and ...
Nick's user avatar
  • 11
4 votes
1 answer
3k views

What USB to UART chip provides highest data rates with Arduino boards?

Checking out online stores for a USB/TTL adapter, I came across a wide range of products, and I'm having a hard time selecting the one which would achieve the highest data rate. I was comparing ...
Dmitry Grigoryev's user avatar
2 votes
1 answer
2k views

ESP8266 Nodemcu create custom PWM with 1.25us resolution

I am trying to control some SMD LEDs WS2812B with the ESP8266-Nodemcu. I am using Arduino environment for coding. Actually I am trying to accomplish a PWM that is precisely able to: Go High for ...
Thomas Richter's user avatar
1 vote
2 answers
5k views

Use of struct and sizeof in C for Arduino

I am a newbie in C and I can not understand the point of using a structure in C. Could someone explain to me what is the point of defining a structure in C programming? For example, this code(written ...
Jack's user avatar
  • 143
1 vote
1 answer
1k views

ard-reset-arduino resetting Leonardo/Micro via USB works on OSX, fails on Ubuntu

I'm trying to program a Leonardo (actually a Micro ATmega32U4) via the command line using USB. Schematically, I'm doing ard-reset-arduino followed by a sleep 1 and an avrdude command. This works ...
fearless_fool's user avatar
0 votes
0 answers
4k views

How to make auto keyboard using arduino nano V3.0 ATmega 328P ?

I have an Arduino Nano v3.0 ATmega328p board. I want to make an auto keyboard that types in a string when its plugged in. I have googled and found that these chips doesn't support that feature unlike "...
knobiDev's user avatar
  • 183
1 vote
1 answer
392 views

How to run 50 IR LEDs off an Arduino UNO?

Hi I have 50 camera devices I want to program. Luckily the camera devices have a param.xml file I can import. I have already loaded the param.xml file on each of the camera devices however, now I need ...
Jonas's user avatar
  • 143
1 vote
1 answer
1k views

GSM shield 2 - Fully erase memory buffer

I would love to get real developers' input regarding the following issue as I've been spinning my head around it for a while now. What I'd like to do My program receives SMS containing simple ...
Manitoba's user avatar
2 votes
4 answers
26k views

ESP8266 NodeMCU first WS2812 LED lights up green

I'm trying to power some WS2812 LEDs from my ESP8266 ESP-12E NodeMCU board (circuit here). I'm simply trying to use the NeoPixel Strandtest which works perfectly on my Arduino UNO with the same LED ...
MortenMoulder's user avatar
0 votes
1 answer
798 views

getHostByName always failing to find a valid ip

I'm using an arduino Uno and a CC3000 wifi shield. I installed Adafruit library in arduino to get access to Wifi network. I'm currently trying to run some samples that comes with the library. It ...
Dimuth Tharaka Menikgama's user avatar
0 votes
1 answer
1k views

How to use this Arduino code to control multiple different LEDs?

I am making an Android-controlled LED system over Bluetooth but I need to use 4 LEDs. I have done Android app but I am not able to figure out this Arduino code. Can some please help me get this done? ...
Kartik Rana's user avatar
-1 votes
1 answer
474 views

What is the principle of scanner

I find a 2.4GHz scanner in this web . I want to do same thing in 433 Mhz with SI4463. But I fail to understand it's principle. Who can explain it ? Thanks.
Enhao Lan's user avatar
  • 123
0 votes
1 answer
2k views

delete or free on object causes Arduino to hand or reboot

I've read a lot about dynamic allocation for strings or buffers, but that's not my case. I plan to implement much blinkers types as classes, all inheriting from a base Action class. I declare an ...
Sierramike's user avatar
0 votes
1 answer
187 views

How to interpret accelerometer data to get decimals from -255 to 255

I'm using gy-521 module and I'm wondering how can i get useful readings from it so that i could work with the data that I'm receiving. I want for AcX and AcY variable values to be from -255 to 255. ...
Povilas Brazys's user avatar
0 votes
2 answers
2k views

Voltage on analog pin arduino when arduino turned off

So can I put a voltage from 0v to 5v on an analog Arduino pin before actually turning the Arduino on? And still read the analog pin correctly when turned on?
piet's user avatar
  • 9
2 votes
0 answers
299 views

Opening and closing a hatch with different switches

I'm new to the whole Arduino thing and I'm not much of a programmer myself so I need some help... The goal is to have 4 buttons which a person who operates it gives out different outputs from the ...
Allaaan's user avatar
  • 21
0 votes
1 answer
625 views

How to use potentiometer data from slave to master Arduino?

I'm trying to make a game where i can use one Arduino as a controller (the controller is a potentiometer) and the other Arduino sending the signals to the computer. Im trying to figure out ...
Rizwan Ebrahim's user avatar
0 votes
1 answer
826 views

Arduino Uno: how to increase distance of serial communication to PC

Does Arduino Uno's serial communication to PC has the same distance as USB communication? (if I'm not mistaken 5m) If it is, what are the options for me to be able to communicate from Arduino Uno to ...
Ralph's user avatar
  • 157
0 votes
2 answers
4k views

Arduino USB Host Shield with joystick

I'm building my own quadcopter and going to use an Arduino for this. An Arduino Micro for the quadcopter and an Arduino UNO for the controller. I want to use an USB host shield with a Logitech Extreme ...
Jeroen's user avatar
  • 3
0 votes
2 answers
690 views

Interfacing IMU and GPS with Arduino

I am using an Arduino UNO board and trying to interface IMU sensor (GY-521) and GPS sensor (Ublox Neo-6M) at the same time. The connections of the IMU and GPS are as follows IMU to Arduino: Vcc --> ...
Ahmad Tariq's user avatar
0 votes
1 answer
2k views

How do I control multiple LEDs strips with Arduino

I want to decorate my house with LEDs strips on each step of my stairs. I will buy LEDs strips with a 12V power supply. I want that if I put my foot on the first step, the first LEDs strip turn on, ...
Kandohar's user avatar
0 votes
2 answers
2k views

Update custom library

I've recently made a custom library. Then, I've imported the library into the IDE via the add .zip library. Once I tried to compile the code, I've realised that I made a small typo. Once I changed the ...
Dat Ha's user avatar
  • 2,913
1 vote
2 answers
963 views

Very strange power supply problem

So, I've put together my Christmas tree lights - a string of WS2811s driven by my Uno board. They are 12 volt WS2811s, so I have rigged a 12 volt supply to them and just using the Uno for the data ...
Lefty's user avatar
  • 325
1 vote
2 answers
65 views

Getting different results from function. How to retrieve values correctly?

Trying to implement PI controller in function. Already worked for one controller. However, for more than one controller, the results are shifting. Suppose to get same values in the following code. ...
zalt's user avatar
  • 93
1 vote
1 answer
755 views

Using an Arduino for a Diorama Controller

Kind of new to the whole DIY electronics scene. I'm building a diorama for my son. It will include a length of track, a station, some other buildings, and scenery. It will be HO scale. The ...
EL MOJO's user avatar
  • 135
2 votes
1 answer
616 views

RF24Mesh master-base node communication delay

I'm trying to build a mesh network using 4 nRF24L01 modules directly connected with Arduino Uno where 1 module is master node and the rest are base nodes. The workflow is exactly as follows I'm ...
somnathbm's user avatar
  • 129
0 votes
2 answers
236 views

IDE avoiding math operation

I have no idea why this has been happening: byte potenciometro = 0;int redpin=9; void setup() { Serial.begin(9600); } void loop() { int valor=analogRead(potenciometro); delay(50); Serial.println(...
David Spira's user avatar
0 votes
2 answers
2k views

How do I read data from Parallel port DB25 over my Arduino?

I am using this program. However, I am getting garbage values only. Do revert as to how can I get proper values over my arduino. /**********************************************************************...
Abhay Bh's user avatar
3 votes
1 answer
96 views

Implementing interrupts and timers on an Arduino Uno board

I am trying to implement interrupts on an Arduino Uno board. My goal is to synthesize waves and play them via a 3.5 mm jack. This is what I have so far, based on some code I was provided. I have ...
quadratische_hose's user avatar
2 votes
1 answer
127 views

millis() vs creating a "long" variable

I think my issue is not fully understanding how the millis() function works; I am wondering the difference between simply creating a variable such as long fake_millis ++ ; vs using millis()?
danieljay's user avatar
2 votes
3 answers
457 views

Why do I get a compiler error when I'm pretty sure I have such method?

Code (I've omitted much of the code, and left just the outline and code probably relating to the error.) SelfDrivingCar.ino #include "JKMain.h" void setup() { JKMain::setup(); } void loop() { ...
Fine Man's user avatar
  • 189
1 vote
1 answer
41 views

Need to turn on project twice in order for screen to work!

This problem is really stumping me. I made a simple printed circuit board with an ATtiny85, a 128x64 I2C OLED display, and a Sharp IR analog distance sensor. You can view the circuit here: circuits.io....
Alex Wulff's user avatar
0 votes
1 answer
5k views

File download from SD card hangs up my ESP-12E

I'm using ESP8266 Arduino for compiling and uploading my code to NodeMCU 1.0 (ESP-12E Module). Flash Size: 4M (3M SPIFFS) CPU frequency: 80 MHz Upload Speed: 115200 I'm using portable arduino-1.6.9-...
Ashish Ranjan's user avatar
5 votes
4 answers
5k views

How to setup an I2C bus which stays valid if a slave is powered down or fails?

I have setup an I2C bus between 3 Arduinos (Master, Slave1 and Slave2) by connecting all 3 A4 pins together, all 3 A5 pins together and one GND pin of each Arduino to a common ground line. The 3 ...
Jolas Marginópolis's user avatar
0 votes
2 answers
725 views

What am I doing wrong with my millis()?

Im new to Arduino and have been trying to use the millis() function for an assignment of mine. I have had a lot of trouble trying to get the millis() function to work but now it seems to be working ...
1fastk's user avatar
  • 15
0 votes
2 answers
89 views

First Serial.print voltage is wrong, way too low. Ruins average calculation [closed]

The first Serial.print voltage reading is so far off it really screws up the moving average calculation. For example, the first reading is like 0.00014981, which is wrong. From the second line on it ...
Rico's user avatar
  • 137
2 votes
1 answer
1k views

wire.h multiple slave addresses

Is it possible to use wire.h on an Arduino Uno to act as a slave for more than one address? For example I'd like it to emulate two different devices, one at I2C address 23 and the other at address 57....
Peter Gottlieb's user avatar
1 vote
2 answers
284 views

manual square wave period is off

I'm generating a square wave with my Arduino UNO using the following: #define pin 10 // data pin to control servo // pulse width (in microseconds) int pulsewidth = 2500; // 400 Hz // wave period in ...
Constantino's user avatar
2 votes
3 answers
938 views

wire.h onReceive only triggering once

I am writing a program to emulate a LCD driver chip (PCF8576) in a piece of equipment where I need to replace an unobtainable LCD display. I have wire.h set up and the code in place to decode chip ...
Peter Gottlieb's user avatar
0 votes
2 answers
2k views

How to add Attiny13 to Attiny board profile in Arduino IDE 1.6?

Several months ago, I asked how to add (or where to get) Attiny13 to the list of boards in the Attiny package available in github: https://github.com/damellis/attiny In post 1.5 IDE, the package is ...
Tomáš Zato's user avatar
0 votes
1 answer
2k views

Getting a reset error on a WEMOS D1

As a learning effort, I am trying some sample code on my WEMOS D1, which is basically an Arduino compatible board with a built-in ESP8266 (Wi-Fi module). This is the output of my Serial Monitor: ...
Chiwda's user avatar
  • 252
0 votes
1 answer
568 views

Questions on how to connect Arduino to Matlab through the serial port

I have an Arduino board with Intel Edison on it. I have tried to read data in Arduino from MatLab through the serial port. I'm sure the Arduino board is working because when I use the serial monitor ...
skyworld's user avatar
1 vote
3 answers
661 views

How to make 12V flashing LEDs using an Arduino Uno?

I have 3 LEDs powered by an Arduino; each LED has its own flash rate. Now I want it to be powered by an external 12V power source and still have the flashing function of the Arduino?
Austin Grant's user avatar
0 votes
2 answers
143 views

Most efficient method to turn a gear extremely slowly?

I have a gear that needs to have roughly one rotation per day. It does not have to be smooth or consistent. So far, the best I have come up with is to have a stepper motor with an arduino that ...
James's user avatar
  • 3
0 votes
1 answer
51 views

Arduino RGB component identification [closed]

Can someone help me identify this component? Thanks in advance.
RedSmith's user avatar
2 votes
1 answer
3k views

How convert eight hex characters to uint32_t using strtol() function?

I want to control 4 pins using hexa code like this ff00ff00 (255, 0, 255, 0). strtol() function works fine with three pins like 00ff00, but when i add two extra caracters to &payload[1] variable ...
Povilas Brazys's user avatar

15 30 50 per page
1
330 331
332
333 334
495