Most Popular

1500 questions
4
votes
5 answers

What are some steps to attach an Arduino to an electric heater?

I have the below portable electric heater, but I would love to control it's start AND stop time using an Arduino. As-is, it does not come with a stop feature. SO, I have a burning question. How can I get an Arduino to start and stop this heater at…
Jose Leon
  • 735
  • 1
  • 6
  • 11
4
votes
2 answers

Why doesn't this motor turn?

When I upload the code, the DC motor makes a humming noise, but doesn't turn. //2-Way motor control int motorPin1 = 5; // One motor wire connected to digital pin 5 int motorPin2 = 6; // One motor wire connected to digital pin 6 // The…
Pyraminx
  • 179
  • 1
  • 6
4
votes
1 answer

Problems with green TWI (I2C) port on Arduino Braccio Shield

Summary: The green TWI/I2C port on my Braccio shield I2C port hasn't worked for me so far. Looking for advice or information please. Detail: I'm using the Arduino (Tinkerkit) Braccio robot arm for self education. It comes with a Uno based Braccio…
RowanP
  • 871
  • 5
  • 21
4
votes
1 answer

Non-blocking SoftwareSerial.Write

How to use SoftwareSerial.Write without blocking if buffer is full? Serial.write blocks if the buffer is full. So I need to check Serial.availableforwrite before calling write to prevent blocking. But there is no SoftwareSerial.availableforwrite.…
4
votes
1 answer

How do I control the onboard LEDs of my Arduino Nano 33 BLE Sense?

I picked up my Arduino Nano 33 BLE Sense for the first time in a while and ran the classic "Blink" sketch to make sure it was alright. After slight usage, I wanted to play with the onboard LEDs. When I run the following code, the onboard LED does…
Ivan
  • 43
  • 1
  • 3
4
votes
2 answers

Initializing Array of structs

I defined myself a struct: typedef struct { unsigned char current; unsigned char start; unsigned char target; unsigned long startTime; unsigned int duration; } led; I was able to initialize an instance of that like this: led h_red =…
iGEL
  • 143
  • 1
  • 1
  • 4
4
votes
1 answer

ATTiny13 Interrupt Issue

I have recently been working on a project that I had initially been designing with an Arduino Nano, and I was able to create functioning code for my application, but for cost / space reduction I decided to port the application to an ATTiny13…
4
votes
1 answer

Why does Arduino round off some integers but not others when my desktop PC does not do this?

I am writing (in C) some low level digit manipulation routines that convert int to float and vice versa for Arduino. I came across some puzzling behaviour with Arduino rounding some numbers but not others. So I located and extracted the offending…
WildCat
  • 303
  • 2
  • 10
4
votes
2 answers

How to move a servo quickly and without delay function

Im trying to move a servo from one place to another while using the typical for loop you find in the servo's library example: int lightON = 180; int lightOFF = 90; for (pos1 = lightOFF; pos1 <= lightON; pos1 += 1) { servo1.write(pos1); …
Marcelo_M
  • 121
  • 7
4
votes
0 answers

What’s the most stable digital communication protocol for sewable electronics?

I’ve spent the past few days trying researching communication protocols and I have a few issues. With sewable electronics, you need to work with cables with a fairly high resistance that are constantly moving. That means unreliable and noisy…
4
votes
2 answers

How can I send and receive data from an Arduino MEGA 2560 and Python?

Hello community I am relatively new to the Arduino world and I am facing some issues trying to establish serial communication between the MEGA 2560 and Python using my PC, the desired result is to print the variable 'cnt' after in the code below in…
Badbunny52
  • 41
  • 2
4
votes
1 answer

Does the compiled binary of a sketch include uncalled functions from a library?

I am writing a GUI using a TFT display and the Adafruit GFX library and its default font on Arduino Nano. I want to be memory efficient and I assumed that the 'optimise for size' default setting of the compiler would not compile and include all…
WildCat
  • 303
  • 2
  • 10
4
votes
6 answers

What is the most efficient voltage divider for Arduino?

I need to make voltage divider, so I could read a battery voltage up to 14.4 V. Could I use very high resistance resistors for that, so the current would be very low (to not to discharge battery)? On the Internet there are examples with 500 - 2000…
Name
  • 135
  • 2
  • 6
4
votes
2 answers

Can Arduino Sketch be used for production

There are lot of device support with the help of Boards Manager today and is on going in Arduino IDE. So I am curious to know about can one use those for production purpose. Or it is recommended for quick prototyping purposes only...
Next-93
  • 63
  • 3
4
votes
3 answers

Arduino Pro Mini is burned by 12v. Can I save it?

I have this Arduino Pro Mini clone (ATmega328) 5v. I gave it exactly 12 volts through the RAW power input, but it instantly got hot and started fuming. Fumes were coming out of the area close to the black S4 thingy. I don't know why, because I…
Sergio
  • 57
  • 1
  • 3