Arduino Weekly Newsletter

Arduino newsletter

Top new questions this week:

How to keep accurate millis() while using ADC_sleep mode?

millis() uses timer0 (linked to CPU clock) to count time, but ADC_sleep mode stops the CPU clock, therefore millis() will drift (lag behind) after each ADC conversion performed in ADC_sleep mode. ...

time millis adc sleep  
asked by OlafM 5 votes
answered by jwpat7 2 votes

Comparing time_t values within an if statement

I am using an UNO with a RTC to control a light board. I'm using a simple control structure to decide when to turn things off and on. It's my understanding that a time_t value is just a number (number ...

arduino-uno timers time rtc  
asked by Vinterwoo 3 votes
answered by Edgar Bonet 2 votes

How to multiply strings?

I want to have a line like this Serial.println(count*"B"); So if count=6, it would print BBBBBB, etc. Is there anything like this for arduino?

string  
asked by Mirror318 3 votes
answered by canadiancyborg 1 vote

Formula for current through shift register

Hi I am programmer that just started learning electronics and Arduino. I built this simple circuit on Autodesk Circuits earlier. Originally I used 220 ohm resistors. Then when I ran the simulation ...

arduino-uno current resistor shift-register  
asked by Heinrich Kruger 1 vote
answered by Majenko 0 votes

LED and Switch Compolation Error Arduino 101

I'm getting an error on line 9 for some reason, (digitalWrite(Sender, HIGH);), and I just cant figure out why. My goal is to have two sets of flashing patterns, one for each switch state. I don't know ...

programming c++ led switch  
asked by Canada Man 1 vote
answered by sa_leinad 3 votes

AC meter By ADC timer interrupt from Nick Gammon

I want to read ADC from the pin A0 and A1. I have written in this code, however. I took this code came from Nick Gammon Thank You ...

interrupt atmega328 analogread adc analog-sampling  
asked by Nightky Sin 1 vote
answered by Nick Gammon 2 votes

Help managing the fallout from timer0 mode and prescaler change on ATMega2560 without modifying wiring.c

For a driving application I need the PWM mode to be phase correct and the prescaler to be 1. The issue is that the board I am working with has the load hooked up to a PWM pin reliant on timer0. The ...

pwm timers  
asked by Nerbsie 1 vote
answered by Edgar Bonet 0 votes

Greatest hits from previous weeks:

Arduino Pro Micro, get data out of Tx pin?

I have a Sparkfun Arduino Pro Micro with an ATmega32u4 on it and a Roving Networks RN32 Bluetooth Module Theoretically, I should be able to solder the Rx of the Bluetooth to the Tx on the arduino and ...

serial arduino-pro-micro  
asked by user3320919 2 votes
answered by Chris Stratton 10 votes

Unable to upload to Arduino Due using 1.6.8 of SAM tools; bossac.exe throwing an error

I can successfully see the Arudino Due when I plug it in, I can compile the code, but when I attempt to upload it to the board I get the following error: ...

arduino-due  
asked by Tim 1 vote
answered by Tim 2 votes
Subscribe to more Stack Exchange newsletters


Unsubscribe from this newsletter or change your email preferences by visiting your subscriptions page on stackexchange.com.

Questions? Comments? Let us know on our feedback site. If you no longer want to receive mail from Stack Exchange, unsubscribe from all stackexchange.com emails.

Stack Exchange, Inc. 110 William St, 28th Floor, NY NY 10038 <3