Most Popular

1500 questions
6
votes
2 answers

How to connect an Arduino to WIFI using an ESP8266

Hi I am trying to make Arduino Uno on local network with the help of ESP8266 wifi module. I tried to search on internet, found mostly they are making ESP8266 as web server.http://circuits4you.com/2016/12/16/esp8266-web-server-html/ Can anyone help…
N Sharma
  • 355
  • 5
  • 9
  • 21
6
votes
3 answers

Visual clock with millisecond display refresh rate

I need to create a millisecond capable visual clock - I will use the clock for visual frame synchronization of multiple cameras. I found this project but it seems to use a LED display that only has resolution of one 1/100th of a second. Not sure if…
Kozuch
  • 167
  • 1
  • 6
6
votes
3 answers

Crash when datalogging MPU-6050 to SD card

On an Arduino Pro Mini, I'm using Jeff Rowberg's stuff in i2cdevlib to read from the MPU6050, and using SdFat to write data to an SD card. Each part in isolation is fine, but when both DAQ and logging are in use the Arduino locks up after a few…
Craig Graham
  • 201
  • 1
  • 6
6
votes
4 answers

Programming standalone Atmega328p-PU with NE555N timer IC

I know I may sound a little idiotic to ask, but as I have seen in the internet that to program a standalone Atmel chip like that from of the Arduino's, you need 2 22pF ceramic capacitors and a 16mhz oscillator. As the oscillator is needed is clock…
6
votes
1 answer

Question different ways of connecting L298N motor driver board to arduino and motors and powering them

I read few posts and tutorials on this topic but none of them kind of answered my questions. I bought this L298N motor board and i have two motors that are rated 3V Now i am trying to understand how to connect it to arduino and power the…
Yan
  • 163
  • 1
  • 1
  • 6
6
votes
5 answers

What happens if you write >10000 times to the flash memory of an ATmega?

I realized that I'm uploading code every 5 minutes and doing relatively intensive trial-and-error development, and that this habit could cause problems down the road, especially if I'm working on a custom board (non-Arduino) where the chip isn't…
user8437812
  • 185
  • 1
  • 6
6
votes
6 answers

Logging small capacitance

I'm measuring capacitance of a system using a multimeter, and found that the value is very small (fluctuate from 50pF to 100 pF). The system is dynamic so the capacitance changes over time. Now I need to log this value to some text file (csv for…
Dzung Nguyen
  • 417
  • 1
  • 7
  • 17
6
votes
2 answers

Detecting the light source location using multiple photoresistors

I am not an expert yet, so please forgive any possibly wrong terminology that I may have used. I am planning to place 6 light sensors in 1 meter (or maybe more) distance from one another, like this (sorry about the bad schematic, I am not an expert,…
Iakovos
  • 175
  • 6
6
votes
2 answers

What does this notation stands for? Wire.read() <<8 | Wire.read()

I'm using the Arduino's site test code for getting raw values from a MPU-6050 accelerometer + gyro. In the loop, there are this lines for getting the next data from its registers: Wire.requestFrom(MPU_addr, 14, true); // request a total of 14…
Julio
  • 113
  • 2
  • 3
  • 11
6
votes
5 answers

How to make a 5-volt relay work with NodeMCU?

I have hooked up 2 channel 5-volt relays with NodeMCU v1.0 as shown in the fritzing below. Relay are powered with a different power source than NodeMCU. As of now, I am powering the NodeMCU from my laptop and the relay board from a 5-volt…
Ciasto piekarz
  • 575
  • 2
  • 12
  • 28
6
votes
7 answers

Understanding why should avoid “String” and alternative solutions

Why “Strings” are bad for Arduino? Which is the most efficient and fastest solution to read and store the data from Accelerometer and GPS? Stings are evil for Arduino An Uno or other ATmega328-based board only has 2048 bytes SRAM. The SRAM is…
Andrea Ciufo
  • 225
  • 1
  • 3
  • 9
6
votes
3 answers

Arduino String memory allocation

When a String variable is declared and modified inside a function, where does it go? To the heap(as string declaration is a part of dynamic memory allocation) or to the stack(as it is a part of function)? And is the space regained after the function…
goddland_16
  • 529
  • 5
  • 14
6
votes
2 answers

Why sensor acts erratically?

I am trying to connect an ADXL355 digital sensor to an Arduino. The wiring and the code I think are OK because the system returns the correct values sometimes and partly correct answers mostly. The code checks the device register, and the correct…
rur2641
  • 291
  • 1
  • 3
  • 10
6
votes
3 answers

Two function Reset button - long/short press

I am trying to make a circuit using an ATmega328, that has a reset button that behaves like many consumer devices: A short press just restarts the micro-controller A long press (5 seconds?) causes the settings to be restored to default What is the…
njh
  • 243
  • 3
  • 7
6
votes
1 answer

Format Integer in Arduino

How to format an integer as 3 digit string? If I give 3 formated string should be 003 printf("%03d\n", 3); // output: 003 This doesn't work in Arduino.
user119o
  • 225
  • 5
  • 10