Skip to main content

All Questions

Filter by
Sorted by
Tagged with
-1 votes
1 answer
60 views

Arduino connect programatically two wires of external 3.3V device

What is a missing puzzle in here, relay, transistor? I would like to pull pin of external device to the ground programatically using arduino's digital pin.
Maleowy's user avatar
0 votes
1 answer
351 views

LED control with a string variable

I would like to control three LEDs with a string variable using an Arduino Mega. I have connected the three LEDs to pins 10, 11 and 12 of the Arduino. If my string equals Red, the red LED should turn ...
learn design's user avatar
1 vote
1 answer
2k views

How to handle class initialization when using brace-enclosed initializer lists

I'm working with a custom C++ library, CPSTL, for Arduino, which includes a cpstd::vector class that is designed to work with cpstd::initializer_list, cpstd::initializer_list is supposed to mimic std::...
Cheche Romo's user avatar
1 vote
3 answers
76 views

Separate from Serial for digitalWrite()

This is my current code (Arduino Mega 2560): #define p1 2 #define p2 3 void setup() { pinMode(p1, OUTPUT); pinMode(p2, OUTPUT); Serial.println("ARDUINO : CONNECTED"); } void loop() { ...
Ganang Wahyu W's user avatar
1 vote
0 answers
239 views

Stepper motor not working with A4988 driver

I have been trying to run stepper motor via Arduino Uno and A4988 motor driver via this tutorial: https://howtomechatronics.com/tutorials/arduino/how-to-control-stepper-motor-with-a4988-driver-and-...
user89175's user avatar
1 vote
0 answers
38 views

Megaboard Problems about pySerial Communication from Python to Arduino

I asked same question on another forum, but i need more opinions and advices. I wrote a simple Python code and Arduino code. In my code, the Excel matrix data is loaded into Python, then converted ...
wk K's user avatar
  • 11
0 votes
2 answers
341 views

DS3231 with Arduino Nano for Timing precision

I need to synchronize two separate circuit boards working with Arduino Nano. The need is to activate one relay using Arduino-1 after 45 minutes, and another relay using Arduino-2 after 45.36 seconds. ...
Lawliet's user avatar
  • 183
0 votes
1 answer
937 views

Arduino nano timing precision

How precisely can an Arduino nano be timed? The project I am working on needs two Arduino nano to work synchronously. Arduino one have to activate a relay after 2700 sec and Arduino two have to ...
Lawliet's user avatar
  • 183
1 vote
1 answer
307 views

Run encoder code simultaneously with other code in Arduino

volatile unsigned int temp, counter = 0; int county=0; void setup() { Serial.begin(9600); pinMode(2, INPUT_PULLUP); pinMode(3, INPUT_PULLUP); attachInterrupt(0, ai0, RISING); ...
Maximus Su's user avatar
-1 votes
1 answer
476 views

How many stepper motors can you run on one Arduino Uno? Ideas on how to run 9?

I am in middle school and new to Arduino. I just learned to set up and code a stepper motor on my Arduino Uno from watching YouTube videos. I want to set up 9 stepper motors to all run at the same ...
JDRNeedsHelp's user avatar
-1 votes
3 answers
341 views

Is there any way to efficiently code reading of four sensors and sending a serial output once it does detect a reading?

I am actually wondering if there's a way to efficiently do this block of code. There are two things in my specifications and these are: Four IR Sensors that detects blockage. Basically just to ...
fireblazer10's user avatar
0 votes
1 answer
255 views

Balancing pendulum using PID

Dear all, referring to the video at here on how to make a PID balancing pendulum as shown in the picture and the author also provided the arduino code in the video description. May I ask whether this ...
jessica smith's user avatar
0 votes
2 answers
2k views

Standalone ATMega328 - do I need to burn the bootloader?

I want to get an ATMega328 off of the Digi-Key, and use it like an Arduino (without requiring the whole Arduino board). When it comes to programming, do I need to do anything special like burn the ...
RGB Engineer's user avatar
1 vote
1 answer
214 views

Fluctuation in 4 half bridge load cell via combinator

I'm currently using a Sparkfun 4 Half-Bridge load sensor (50 Kg) with combinator and amplifier both are from the Sparkfun. Link:https://www.sparkfun.com/products/10245 (For Load Sensors)https://www....
Ayub 's user avatar
  • 13
2 votes
1 answer
2k views

Nema 17 stepper motor speed problem

This code is quoted from here. May I know how to increase the speed of the NEMA 17 stepper motor further? I tried to increase the step speed to 2000rpm but it does not even work. It only works for ...
felix tan's user avatar

15 30 50 per page
1
2 3 4 5
18