Questions tagged [speed]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
179 views

Speedometer for car [closed]

I want to build a speedometer for a car using Arduino UNO. For the display, I'm using an LCD screen that will be located behind the steering wheel. For context, I'm building the speedometer for a ...
cool bean's user avatar
1 vote
1 answer
66 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 ...
Guillaume_slize's user avatar
1 vote
2 answers
68 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 ...
Bart Friederichs's user avatar
1 vote
1 answer
2k 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 ...
AI09's user avatar
  • 13
0 votes
3 answers
48 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 ...
Ben's user avatar
  • 101
10 votes
2 answers
3k 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 ...
mark-hahn's user avatar
  • 277
2 votes
0 answers
428 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 (...
Infinity Computers's user avatar
0 votes
2 answers
248 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 ...
Chris Stenkamp's user avatar
1 vote
0 answers
2k 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 "...
user1814720's user avatar
1 vote
0 answers
46 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 ...
robertbaker's user avatar
1 vote
0 answers
137 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 ...
Ahmed Abdulla's user avatar
1 vote
2 answers
2k 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 ...
Rob W's user avatar
  • 138
1 vote
1 answer
370 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 ...
Tamoghna Bhattacharya's user avatar
0 votes
3 answers
116 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 ...
cody blanchard's user avatar
2 votes
2 answers
1k 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 ...
nuggetbram's user avatar
3 votes
5 answers
9k 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 ...
MrEditor97's user avatar
3 votes
1 answer
696 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); ... ....
user1329019's user avatar
-1 votes
1 answer
195 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 ...
Amey Jadiye's user avatar
2 votes
0 answers
370 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 ...
Igor Polyakov's user avatar
1 vote
1 answer
645 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 ...
ShoutOutAndCalculate's user avatar
0 votes
1 answer
94 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 ...
ShoutOutAndCalculate's user avatar
0 votes
1 answer
541 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 ...
Farid Hamidov's user avatar
0 votes
1 answer
199 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 ...
Farid Hamidov's user avatar
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 =...
Beacon of Wierd's user avatar
0 votes
1 answer
332 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 ...
Beacon of Wierd's user avatar
-1 votes
1 answer
37 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 ...
Hamed's user avatar
  • 1
1 vote
0 answers
96 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 ...
flowerspowers's user avatar
1 vote
0 answers
229 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. ...
Luqman Luqluq's user avatar
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 ...
Luc Le Blanc's user avatar
0 votes
1 answer
208 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> ...
Samuel Taylor's user avatar
1 vote
1 answer
63 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; ...
Brethlosze's user avatar
0 votes
1 answer
399 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 ...
user17830's user avatar
  • 103
1 vote
2 answers
818 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 ...
john caren's user avatar
1 vote
0 answers
979 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 ...
igomez's user avatar
  • 11
1 vote
2 answers
1k 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 ...
paulm's user avatar
  • 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 ...
Sharath Chandra's user avatar
1 vote
1 answer
216 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 ...
LinuxFerLife's user avatar
0 votes
2 answers
269 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 ...
R1S8K's user avatar
  • 283
1 vote
1 answer
100 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 ...
MikeDub's user avatar
  • 113
3 votes
1 answer
7k 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 ...
Hira's user avatar
  • 41
0 votes
1 answer
974 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 ...
Hanh Ngo's user avatar
0 votes
1 answer
130 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 = ...
Ahmed Younes's user avatar
1 vote
1 answer
798 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. ...
Angus Ryan's user avatar
0 votes
1 answer
662 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 ...
pranchan's user avatar
1 vote
1 answer
269 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)...
Iqbal Hossain's user avatar
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 ...
MichaelT's user avatar
  • 887
0 votes
1 answer
206 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 ...
gjtorikian's user avatar
4 votes
1 answer
7k 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 ...
FarO's user avatar
  • 339
-1 votes
1 answer
471 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 ...
Mukhar Jain's user avatar
0 votes
2 answers
670 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