Most Popular

1500 questions
5
votes
3 answers

Sizeof variables and Due's RAM

I set out to see how much space some arrays have. I used this test code bool state = false; uint16_t BuffA[46000]; uint16_t BuffB[20000]; uint16_t BuffC[20000]; uint16_t all = 0; void setup(){ Serial.begin(9600); } void loop(){ if…
user1584421
  • 1,395
  • 3
  • 22
  • 36
5
votes
2 answers

Stacking Arduino Shield (Motor Shield, LCD Keypad, LED Sensor)

I'm building a line follower with arduino, here some part that I'm going to use Arduino Uno Motor Shield 2A http://www.dfrobot.com/index.php?route=product/product&product_id=69 LCD Keypad 4 Channel Line Tracking Sensor…
5
votes
1 answer

Salvaged Stepper Motor Blues

So recently my company threw away some rather large and reasonably old laser printers. One was a LaserJet 9050dn the other was a Epson printer/scanner combination. Being a little industrial I thought let me salvage them and brought them home. I…
Namphibian
  • 218
  • 1
  • 9
5
votes
3 answers

Why does my sketch report too many button presses?

I've been using a button to interact with a sketch (on my Uno), and it's mostly working fine. However, sometimes it seems to be detecting multiple presses when it's only pressed once. It's a small circuit-mounted momentary button, which is normally…
Peter Bloomfield
  • 10,932
  • 9
  • 47
  • 87
5
votes
5 answers

Is it possible to make normal pins act like ground pins?

So what exactly I am trying to do is control a motor and be able to turn it both ways without any extra parts. So if the hmp was on (the plus pole) and the hmm (the minus pole) acted like ground the motor should start turning right. But if the hmp…
5
votes
1 answer

I2C RTC returning bad times - sometimes

I have a TinyRTC I2C clock in one of my Arduino projects, and it works most of the time. But occasionally, it will report the time as 165 hours, 85 minutes and 25 seconds (165:85:25) for a couple of seconds, then go back to the correct time. I…
David
  • 51
  • 2
5
votes
3 answers

How to convert an hex string to an array of bytes?

How to convert the char array to Byte array? I tried every method but it doesn't work. char CardNumber[8] = "B763AB23"; // Length is 8, basically it's in Hex // B7 63 AB 23 I need to convert it into Byte array to…
RS System
  • 61
  • 1
  • 1
  • 3
5
votes
1 answer

Multiple definition of "..." Compiler Error

I am creating a simple library to test how multiple files in an Arduino program works. I have three files. MotorController.ino: #include void setup() { motorInitialize(); } void loop() { } motor.cpp: #include "motor.h" void…
Kyle Marino
  • 53
  • 1
  • 1
  • 3
5
votes
4 answers

Library to set internal analog gain of the Arduino?

My original question was if there is a library that covers the internal comparator and differential and gain modes for the Arduino Uno, Mega 2560, Leonardo, Due, Zero, M0. The answer is obvious: "No". To my surprise there is not even a start to make…
Jot
  • 3,246
  • 1
  • 13
  • 21
5
votes
1 answer

In Linux, how do I get this Arduino library to work

In Linux Fedora 20 Arduino I want to use the Timer library from here, from which I have downloaded the folder Timer-master.zip, but, when I try to import it, I get the Arduino message that it cannot be imported because its name includes characters…
Harry Weston
  • 238
  • 3
  • 11
5
votes
2 answers

Programmatically Change Arduino Com Port Name

I have some devices that, when I plug in, will display a unique name, usually a serial number, as opposed to "COM #" is there any way I can have my Arduino Uno (or Mega) give itself a different name in my program's set up structure? Edit: My purpose…
ATE-ENGE
  • 931
  • 3
  • 19
  • 32
5
votes
1 answer

ATmega AVR frequency measurement with timer/counter

I've been rehashing some existing libraries I found on some obscure forums to measure a frequency on digital pin 5, using the ATmega328P/ATmega2560 Timer/Counter modules and an interrupt based approach in order to be able to measure frequencies up…
Robbe Elsas
  • 75
  • 1
  • 6
5
votes
1 answer

Uno with LCD acting strangely - power issue?

I've got a Uno (Elegoo UNO R3) running with - Ethernet shield (Kuman K15), - 4 relay board (Elegoo 4 Channel DC 5V Relay Module with Optocoupler ) - Matrix Orbital 2041 LCD connected via I2C (11mA typical, 90mA with backlight) - A series of buttons…
kolcun
  • 51
  • 1
5
votes
5 answers

AT command is not responding on serial monitor

I am trying to send AT commands to ESP8266. I re-flashed ESP8266 https://i.stack.imgur.com/z0hoc.jpg I followed this tutorial http://remotexy.com/en/help/esp8266-firmware-update/ and I hope it re-flashed successfully as there was no error. When I…
N Sharma
  • 355
  • 5
  • 9
  • 21
5
votes
1 answer

How can I automatically get the time from the computer into an alarm clock (starts at 00:00 when plugged in)?

Okay so I did this project from Fritzing first in my circuits.io project then on the arduino itself, it all works fine just how I wanted it. But here is what I wanted to add, as you can see when you plug the arduino in it will set the time to 00:00…
Zanic L3
  • 181
  • 1
  • 4