Most Popular

1500 questions
6
votes
1 answer

How do I specify a working directory when saving to SD card?

I'm trying to datalog to a EyeFi SD card by writing to a file with a jpg extension. Here's that portion of my code so far: // see if the directory exists, create it if not. if( !SD.exists("/DCIM/100NIKON") ) { if( SD.mkdir("/DCIM/100NIKON") ) …
user2218339
  • 219
  • 3
  • 12
6
votes
5 answers

Arduino-based mains frequency monitor

I'm looking to put together a simple mains frequency monitor based on the Arduino platform. The mains here are 250 V @ 50 Hz, but obviously these fluctuate slightly, which is the whole point of the exercise. (I am not interested in capturing voltage…
Ozzah
  • 193
  • 5
6
votes
1 answer

Why can't I define the constant A0 (some pin) to something?

What I'm doing wrong or why is it not working: #define Uin A0; void setup() { } void loop() { analogRead(Uin); } Results in a Error (expected ')' before ; token. I thought #define just exists as a place holder.
TimK
  • 163
  • 4
6
votes
2 answers

Why bootloader sizes differs from 0.5 to 8 kilo bytes for different boards?

According to official web info bootloader sizes are 0.5, 2 and 8 kilo bytes for UNO, Pro mini and ATMega2560. I believe all three boot loaders do similar job of receiving serial link data and write to Flash memory. UNO and Pro mini use same/similar…
EEd
  • 904
  • 1
  • 13
  • 21
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
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
  • 8
  • 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
  • 1
  • 6
6
votes
2 answers

Arduino Uno as USB to Serial converter (bypass 328p)

I'm trying out computer to computer serial communication using 2 Arduino Unos (both connected to different computers). Right now, I use the Software Serial library, which redirects data from the SoftwareSerial ports to the hardware Serial (over USB…
Carl
  • 99
  • 1
  • 3
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
  • 3
  • 12
  • 28
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