Questions tagged [speed]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
48 views

Need help figuring out how to organise a system to run a stepper motor at low speed without Steps-skipping

TL;DR : How to prevent step-skipping with a NEMA gearbox motor at low speed. I am in the process of creating a system in which I want an object to turn on a plate and to show a letter depending on the ...
1 vote
2 answers
63 views

How to increase pinout switching?

Consider this code: void loop() { digitalWrite(pinTest, HIGH); digitalWrite(pinTest, LOW); } On an Arduino Mega 2560, running 16MHz (=0.06us), I would expect the width of the pulse to be ...
1 vote
1 answer
559 views

How do I control the speed of a 2-wire fan with an Arduino and only a potentiometer?

I am trying to vary the speed of a 2-wire fan by using a Arduino Uno and only a potentiometer. Initially, I assumed that I could go about doing so by using a code that I used for dimming an LED. When ...
  • 13
0 votes
3 answers
42 views

How do you deal with balancing the limited storage of Arduino with the decrease in speed if you just print everything as it gets measured?

I am working on a simple data acquisition system based on an Arduino Uno. Each run would ideally collect up to 10k data points (all doubles). Obviously, the Arduino doesn't have the capacity to hold ...
  • 101
10 votes
2 answers
2k views

On an esp8266 what is faster, 64-bit math or float math?

I need to do some math with vars from an attitude sensor (acclerometers and gyroscopes) on an esp8266. int32_t math with those vars does not have enough range and the float math operations are ...
  • 277
2 votes
0 answers
154 views

Why can't an Arduino/ATmega328 act as an SPI slave at anywhere approaching the maximum speed claimed in the datasheet?

The ATmega328 datasheet claims a maximum SPI slave speed of Fosc/4. For a chip clocked at 20MHz, that would be 5Mbps. However, my tests show that even with no processing whatsoever in the interrupt (...
0 votes
2 answers
114 views

Arduino Nano: Send a few bytes over Serial with as little delay as possible

My scenario is the following: I have a few buttons connected to an Arduino Nano, which is connected to my PC over Serial. Now I want to send a few bytes whenever a button is pressed, to be interpreted ...
1 vote
0 answers
782 views

Fastest external High Speed ADC?

I am in a situation close to: Hi-speed external ADC But with 100,000 ~ 500,000 samples per second, I don't need more. I only want to detect changes in 2 sensors, so each loop is only an "...
1 vote
0 answers
33 views

Need help with independent speed control on multiple steppers

I am a NOOB. I admit to a huge lack of understanding of programming. I just need my machine to work. I cannot wrap my head around getting independent speed control of 2 steppers since it seems that ...
1 vote
0 answers
93 views

Controlling a flat brushless DC motor with integrated speed controller

I have recently purchased the Brushless DC-Flat Motors Series 2610 from Faulhaber and I am honestly new to this type of motor as it’s pins are not like any other I have used before. I would appreciate ...
1 vote
2 answers
1k views

What is the maximum frequency input signal that I can accurately track on a GPIO pin?

This all started with me wanting to use an Arduino to make a tachometer. This is all now working fine, but it got me wondering what the highest frequency digital signal that I could read? So I built a ...
  • 138
1 vote
1 answer
246 views

Speed data logging using arduino and GPS module

I am using a Quectel L80-R GPS Module coupled with an Arduino UNO to read and log my car's coordinates and speed. I am currently using TinyGPS++ library which works okay. It does spell out coordinates ...
0 votes
3 answers
85 views

Why does my 23,032 byte Arduino sketch take 36.32 sec to upload via ISP to an Atmega328p on a breadboard w/code verification disabled?

"Sketch uses 23032 bytes (71%) of program storage space. Maximum is 32256 bytes. Global variables use 1342 bytes (65%) of dynamic memory, leaving 706 bytes for local variables. Maximum is 2048 ...
2 votes
2 answers
779 views

Am I at the limit of UART transmission time?

I'm currently using an STM32F103C8 (With an arduino core) to read 4 sensors at 1kHz, then send that data via UART (at 115200 baud) to another device. Each sensor returns a float, I also include an ...
3 votes
5 answers
7k views

How do I convert 0-5v PWM to a 0-12v PWM

I have a Arduino which I would like to use to control a 12v PWM fan for speed control. I know about the 0-3.3v to 0-5v logic level shifter, is there a similar option for 0-5v to 0-12v? Or is there a ...
3 votes
1 answer
561 views

How to slowly change direction of the stepper motor with AccelStepper?

I know that direction can be changed with .setSpeed(speed); ... //check input .setSpeed(-speed); I need to slowly decelerate and accelerate backwards, so I have to use .setAcceleration(200); ... ....
-1 votes
1 answer
146 views

How to control baby swing?

I am starting an intresting DIY project of baby swing. My son is 3 month old and we have swing made with ropes in our house where he sleeps. I am looking for any electronic component controlled with ...
2 votes
0 answers
264 views

Problem connecting Arduino and ADC AD7606

Question is about using ADC AD7606 paired with Arduino (Arduino Mega). I can’t reach the stated speed of this bundle, the question is also whether it is possible or not. ADC output mode is 16-bit ...
1 vote
1 answer
324 views

Why ESP8266 slower than Arduino nano?

I'm using the same script(and standard wire and serial library only) one uploaded to Arduino nano one uploaded to ESP8266. However, despite ESP8266 running at 160MHz, 10 times faster than nano, it's ...
0 votes
1 answer
70 views

Super fast UART transimission return error

The code was based on Fahad Mirza's very helpful example here Send structure through Serial The Sender's code now became struct Gyro_data_structure { char command_name[5]; float gyro_X; float ...
0 votes
1 answer
432 views

DC Motor Car Steering

I am working on a project with a 3-Wheel Car: 1 Custer Wheel, and 2 DC Motors. I need to steer the car playing with the speeds of these two dc motors. If I would supply a constant voltage and current ...
0 votes
1 answer
143 views

DC Motor Control L298N

I am trying to control the speed of two motors using L298N. I use "Arduino Nano ATmega 168". I change the analogWrite between 0-255 but I cannot see any difference. When I assign it to something like ...
0 votes
1 answer
39 views

Missing time when using timer

I have set up Timer2 to count every tick at 16MHz, or 62.5ns per tick. Then I run the following code: int t = 0; for (int i=0;i<64;i++){ data[4*i] = TCNT2; data[4*i+1] = TCNT2; byte now =...
0 votes
1 answer
220 views

When does the ADC take the reading?

I'm experimenting with the "2 pin capacitance meter" and trying to make it more accurate. Currently I've made the Arduino read 62.5 ns intervals but this means the time for the ADC to read is taking ...
-1 votes
1 answer
36 views

choosing prober controller to measure engin speed changes

In order to monitor engine speed changes in real time, sensor is detecting the motion of few magnets around a disk driven by the motor. 1st approach Hall effect sensor signal is regulated by LM393 ...
  • 1
1 vote
0 answers
76 views

LED GPS Speedometer Not Registoring Speed Above 0

I'm trying to make a speedometer that will change colors depending on the speed on which I am traveling. If the speed is decreasing at any time or below 5 mph LEDs be red. And if the speed is above ...
1 vote
0 answers
196 views

GPS Speedometer value didnt come out

I'm building a GPS speedometer. I use Neo-6M module for GPS, Arduino uno and 128x64 OLED screen for monitoring the value. I've checked the GPS module. It gives me data about latitude and longitude. ...
0 votes
2 answers
84 views

Determing approximate bicycle speed for distancemeter

I'd like to build a self-contained bicycle distancemeter similar to those now used by local police, i.e. that measure and display the distance between the bicycle handlebar's end and passing cars and ...
0 votes
1 answer
109 views

Measure revolutions per second with reed switch

I'm trying to measure speed of a fly wheel with a reed switch with one magnet (1 pulse per full rotation). I have an 100nf cap connected to switch to help with debounce. #include <Arduino.h> ...
1 vote
1 answer
48 views

Serial Port fails with speeds greater than 19200

In Arduino Mega 2560 R3, properly selecting the Serial Monitor bauds, this code works with #define R 38400, but for some reason, not with #define R 19200 (?), #define R 38400 int rate=R; ...
0 votes
1 answer
345 views

Does LabVIEW Linx affect the communication speed with Arduino?

I am using LabVIEW to connect to Arduino Mega. I control a logic gate to switch the current On/Off and at the same time there is an I2C connection with a sensor. It came to my attention that the ...
  • 103
1 vote
2 answers
639 views

How to increase the serial port's data throughput

I have an array of numbers that will be subtracted from the ADC readings of a 50 Hz sine wave. Using Serial.begin(57600);, I can only output 25 samples per sine wave cycle, or about 1,250 samples ...
1 vote
0 answers
939 views

PID controlled DC Motor Speed

I'm writing a PID program for a simple DC Motor. This motor has an encoder at the bottom which allows me to read motor speed. The goal of the project is to provide a constant speed if there is light ...
  • 11
1 vote
2 answers
784 views

Ethernet Shield: Maximum speed

Looking at this shield here: https://store.arduino.cc/arduino-ethernet-shield-2 It states that "Connection speed: 10/100Mb". However from looking at various forums it appears that no one can get much ...
  • 113
1 vote
3 answers
2k views

analogWrite is not working - while trying to control DC motor speed

I'm trying to control the speed of DC Motor using Arduino R3 NPN Transistor (2N2222A331) 10k potentiometer 2M ohm resistor Diode I'm not using L298N and I'm also not using L293D. DC motor is ...
1 vote
1 answer
181 views

GPS detecting stationary?

can someone please point me at some code snippets to detect when the GPS is stationary. I am currently using tinyGPS library and it is working fine, but my data-logger has thousands of stationary ...
0 votes
2 answers
239 views

28 BYJ stepper motor runs faster using delay() and little slower using millis(), why?

I'm working to develop a code for the stepper motor to use it in a project. And since using delay() isn't as efficient as millis(). So I first developed the code that use delay with 1ms delay between ...
  • 283
1 vote
1 answer
82 views

Creation of multiple power cells to be controlled by Arduino [closed]

I'm fairly new to the Arduino world, but have a history of good working knowledge of computers and software (I'm a software engineer), but I've only had the opportunity so far to create a few simple ...
  • 113
2 votes
1 answer
6k views

Speed controller for Ceiling Fan 220V AC 100W

I would like to use ESP32 to speed control my AC ceiling fan which is 220V AC 100 W. Will the below AC dimmer work with ESP32 to speed control the ceiling fan which is 220V AC 100 W? If not, kindly ...
  • 31
0 votes
1 answer
853 views

Increase and Decrease Motor Speed [closed]

I'm a newbie on Arduino and I'm doing an exercise about the Motor controller "Increase the motor speed from zero to maxium (255) and then decrease slowly from the maximum to the minium." Here's my ...
0 votes
1 answer
126 views

Robot car speed issue

If I'm connecting it in this way I have no issue and I can control the speed. here is a video const int speedMotorA = 9; const int speedMotorB = 3; const int motorPin1 = 4; const int motorPin2 = ...
1 vote
1 answer
631 views

Reduce speed on DC motor

The Arduino starter kit came with a DC motor. I want to have it rotate at a slow speed so it can be on a reel and automatically dispense and wind wire, however, I don't know how I can slow it down. ...
0 votes
1 answer
622 views

Measuring the speed of an object moving fast through air [closed]

I am new to arduino and am confused about how I would go about doing this: I want to attach a device to a small ball, that will move through the air at speed. The purpose of this device would be to ...
1 vote
1 answer
227 views

GPS showing incorrect speed

I am using Arduino ATmega 2560. When i am using "AT+CGNSINF" command to get GPS value, sometimes it showing incorrect speed. The correct speed should be (50-60)km/h but sometimes it showing (200-300)...
1 vote
2 answers
1k views

Uniform timing when using Arduino for data acquisition

I am using Arduino UNO together with a SPI ADC (LTC1859) and SRAM (23CL1024) to record a series of data points at approx 2 kHz sampling rate (let's say a few thousand data points). I have some ...
  • 887
0 votes
1 answer
201 views

How do I lower clock speed for MKR1000? [closed]

According to data sheets, the MKR1000 runs a SAMD21 Cortex-M0+ processor at 48 MHz. For a project I need to drop that down to 16MHz to get some accurate timing in us. How can I do this? Most of the ...
4 votes
1 answer
6k views

Can I get the current connection speed with ESP8266?

Using an ESP8266 I can get the RSSI of the Wifi network using Wifi.getNetworkInfo() or Wifi.RSSI(). But is there a way to know the actual connection speed in Mbps, after joining successfully a WiFi ...
  • 339
-1 votes
1 answer
426 views

How to get Velocity and Displacement from IMU sensor?

I have an imu mounted bot.I want to get the speed of the bot using imu i dont want to use the encoders. Imu gives acceleration how should i integrate that to get velocity and how much error would be ...
0 votes
2 answers
646 views

How to use an Arduino to measure speed of rocket

I am not very experienced with Arduino and I am trying to learn it. I was wondering what is the easiest and most effective way to calculate speed and log it every second so to say. This would be ...
user avatar
0 votes
2 answers
453 views

Speed measurement from lidar sensor for automatic braking system

For a school project I have been working on a system that will automatically brake when there is danger. Only the requirements are more strict (safety) than just using a ping sensor and detecting a ...
  • 1