Questions tagged [frequency]

Defines how often something occurs, such as pulses in a digital signal, or oscillations in a radio wave.

Filter by
Sorted by
Tagged with
1
vote
0answers
24 views

Communication between Arduino UNO using an ethernet shield and a RF attenuator

I am relatively new to Arduino and I was wondering if someone could help me with my problem. I have a RF attenuator that can be programmed in various ways. For example if I type http://10.10.10.10/:MN?...
1
vote
0answers
16 views

FG Frequency output

I have bought the Brushless DC-Flat Motors Series 2610 and Pin number 6 is called FG which is defined as frequency output. I have plugged this pin into the Arduino in A0 and I have tried displaying ...
0
votes
1answer
39 views

LED Music Visualiser

I am trying to create my own LED music visualiser for a university project but I can't seem to find anything I am looking for in terms of circuitry that I need for the project. I am using a teensy ...
0
votes
0answers
40 views

Changing frequency by button press

I have to up the frequency by 100 hz by button press for upto 1khz; I am stuck on using the debounce source code. The problem is every time I press button the value for "i" goes to random ...
2
votes
1answer
66 views

analogRead() doesn't read more than 500Hz

I connected a wave generator to the analog pins to read the frequencies of the waves generated. I used different frequencies of sine waves with a minimum of 0V and maximum of 5V. Whenever the voltage ...
1
vote
2answers
219 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 ...
1
vote
1answer
109 views

Time signal. Determine the presence of pulses and their duration [closed]

I want to detect the exact time signal from an FM radio station. The signal is transmitted in the form of 5 short pulses and one long one. My task is to determine the presence of a pulse in the audio ...
6
votes
6answers
3k views

Is it possible to generate an exact 15 kHz clock pulse using an Arduino?

I want to generate a 15 kHz pulse with an Arduino using Timer1, but the problem is that if we want a 15000 Hz clock we need to initialize the timer with 1/15000 seconds or 66.66 microseconds, but we ...
0
votes
0answers
36 views

Can I Make a Radio Frequency Remote with Arduino

Im doing a project where i'm using arduino with a RF Receiver 433MHz. Where i press a button on a RF remote to make the lights or anything that i connect to the relay modules which in turn are ...
3
votes
3answers
72 views

Recognize peak in specific frequency area

I am wondering if it is possible to attach a microphone to an arduino board and make the arduino recognize a volume peak in a specific range of frecuency's. I want it to detect a specific peak (for ...
1
vote
1answer
47 views

How the light brightness stays constant when we increase the frequency of stroboscope

Well I am trying to make a Stroboscop. I found this code at blow: and tried. It works normally. But if I increase the RPM so decrease the "strobeDelay" time, the brightness of the LEDs goes ...
1
vote
0answers
52 views

How to change the update rate in TinyGPS++?

I am working with TinyGPS++ library and Arduino-nano and I want to change the update rate. I worked before with Adafruit GPS and uses the below code for updating it. // Set the update rate GPS....
3
votes
2answers
278 views

Generate 1khz square signal with Arduino Mega

I want to generate a 1khz square signal with an Arduino Mega. I have read the MCU contains several timers. What i want to do is to configure one of this timers. My first question is: Is there a way to ...
3
votes
1answer
207 views

Measure audio frequency through pulse duration

Hello dear StackExchange users, i want to develop an Infrared blaster which i can plug into the headphone jack of a phone or console of choice. In order to communicate what frequency to modulate the ...
2
votes
0answers
201 views

1.7 MHz generator for a water atomizer

I'm creating a controller for a small greenhouse, I have a DHT22 for measuring and two relay module that controls heating and cooling systems, and I will use a piezo to produce humidity when it goes ...
0
votes
1answer
145 views

How to run atmega328p at 8, 4 and 1 mhz?

Instead of using the regular Arduino board I have purchased the atmega328p-pu along with this components: 22pf ceramic capacitor 10K resistor 16mhz crystal 47uF capacitor 3.3 Volts Power supply The ...
0
votes
2answers
103 views

How can arduino read a frequency higher than 16Mhz?

I will like to understand how does Arduino measure a frequency. Also how does my voltmeter can measure a frequency as well. Since I am a beginner on using microcontroler I would read a frequency like ...
0
votes
1answer
199 views

Fading LED with different frequencies

I have a potentiometer attached to one analog port of arduino (assume A0) I'm reading the value of that using input_voltage = analogRead (A0); which is a value between 0-1023. So I want to map this ...
1
vote
2answers
105 views

Clock frequency VS cycle time

I am considering switching from Arduino Pro Mini 5V 16MHz to Arduino Pro Mini 3.3V 8Mhz for some project because I would like to run it with a 4.5V input power. Will the switch from 16 to 8Mhz double ...
0
votes
1answer
33 views

Will an Arduino UNO operating at 16mHz communicate with UART / I2C with an STM32 operating at a different frequency?

I plan to connect Arduino UNO via I2C / UART with a controller based on STM32F334K8T6, whose frequency will be about 20mHz or higher. Tell me, does the difference in clock frequencies of ...
0
votes
0answers
58 views

Frequency Doesn't increase when Button Is Pressed

I’m trying to output a frequency that can be increased and decreased by using 2 buttons. I’m trying to first of all configure the first button (which increases the frequency). I’m trying to also add ...
1
vote
1answer
87 views

Timer 1 Arduino - Create 2 Timers

I’m trying to output 2 separate frequencies using 2 output pins from an Arduino using the Timer 1 library. A snippet of the code is show below. void setup() { Serial.begin(9600); pinMode(button,...
0
votes
1answer
2k views

Trouble with setting the PWM frequency for Arduino Due

I'm using Arduino Due and I set the analog read and write resolution to 12-bit for better resolution. Basically all I do is to vary PWM duty cycle by controlling analog DC input voltage from 0 to 3.3V....
-1
votes
1answer
1k views

ESP 32 changing frequency instead of duty cycle

Using this code on an esp32 allow to vary duty cycle of the PWM with a fixed 5000Hz frequency and is working fine. My question is how to vary frequency and keep duty cycle on a fixed value? // the ...
0
votes
1answer
170 views

Writing Data through Pin at certain frequency

I have an Arduino UNO which is connected to an KLZ25 board, the Arduino sends an 1MHz Clock at Pin 9 and now I should write the PDM-Data with 1 Mhz at pin 8. But i don't know how to write with such a ...
0
votes
1answer
251 views

6 channel PWM with 2 - 5 kHz frequency

Is it possible to set all 6 PWM frequencies to a value between 2 and 5 kHz? I've read that the base frequency for pins pins 5 and 6 is 62500 Hz. And the divisors for the pins 5 and 6 are only this ...
0
votes
1answer
76 views

Detect radio frequency keyfob [closed]

Would it be possible to detect when somebody closes/opens/uses their keyfob (based on radio frequency) ? It is of course not the intention to hack the key. Just knowing when somebody has pushed a ...
-1
votes
2answers
197 views

Setting a pin to a continous wave output

Is there any way in Arduino to set a particular pin(pwm or not) to just generate a square wave out of the desired pin? For instance, I want to have two pins on my Arduino Uno that output two square ...
2
votes
0answers
536 views

Measuring Amplitude/Frequency of sound

I need to read an analog signal at about 500-1000Hz for at least 5 seconds. I've a battery powered microphone wired into an analog and ground pin on my arduino and am trying to measure the frequency ...
0
votes
1answer
274 views

making power harmonics analyser which will measure the amplitudes of the fundamental and its multiples (like 50hz, 100hz, 150hz,200 hz,…) there are)

i have been intendng to make a power frequency harmonics analyser which will measure the amplitudes of the fundamental and its multiples (like 50hz, 100hz, 150hz,200 hz,...) there are examples for ...
1
vote
0answers
131 views

Sketch works on MEGA 2560 timer2, but does not work on timer1

I set the PWM frequency on MEGA 2560 like this: TCCR2A = 0; TCCR2B = 0; TCNT2 = 0; TCCR2A = _BV(COM2A1) | _BV(COM2B1) | _BV(WGM20); ...
1
vote
2answers
334 views

Generated frequency is not as expected

This code sets a pin HIGH for 1 microsecond and then LOW for 1 microsecond. The expected frequency should be about 500 kHz. When measuring the output the frequency is about 96.4khz. Why ? int del = 1;...
0
votes
1answer
319 views

Turn infrared LED on and off in order to simulate an infrared signal

Note I am able to send and recieve IR signals. This question is only for purposes of learning. When using the existing library #include <IRremote.h> it is very simple to read and transmit ...
1
vote
1answer
164 views

Can I use arduino to generate 8mhz frequency ultrasonic pulses in piezo discs?

void setup() { pinMode(freqOutputPin, OUTPUT); Serial.begin(9600); // Set Timer 2 CTC mode with no prescaling. OC2A toggles on compare match // // WGM22:0 = 010: CTC Mode, toggle ...
0
votes
2answers
149 views

How can I calculate approximate cycles per second from pulsed pin on Arduino MKR Zero?

The relevant tech specs for a MKR Zero are: 32.768 kHz (RTC*), 48 MHz *Real-Time Clock What I'm curious about is how I might do an approximate calculation of cycles per second from operations. ...
0
votes
1answer
3k views

Changing PWM on Arduino Mega, pins 9 & 10 to 20 to 25 KHz

I'm trying to run a Nema 17 motor with a l298N motor Driver for a school project. The issue is that I am running the motor with PWM to avoid overheating of the driver, however the resulting noise at ...
0
votes
1answer
714 views

More than 4 PWM output at 25khz?

Is it possible using an arduino to control more than 4 PWM fan at 25khz ? I have found this but 4 PWM limited with an UNO https://arduino.stackovernet.com/fr/q/8407 An other arduino, like a 2560 ...
0
votes
0answers
45 views

Why does MKRZero code read value off of wire on A0, even though there is no voltage/current? [duplicate]

I have a MKR Zero running the code from the official Arduino site : https://www.arduino.cc/en/Tutorial/AnalogToMidi The circuit wasn't working (always reading a value of 0 on A0 -- as detailed in ...
0
votes
0answers
71 views

What might be some reasons this MKRZero circuit and sketch fail to read frequency?

I've built the following circuit on my MKR Zero I've also uploaded, compiled and deployed the code from the associated article (https://www.arduino.cc/en/Tutorial/AnalogToMidi) with no errors. Note: ...
0
votes
1answer
757 views

How to increase the volume in speaker using talkie library in arduino uno…?

What else should I add to this code to increase the volume..?? #include "talkie.h" Talkie voice; const int8_t speech[] PROGMEM= {0x00,0x00,0x00,0x08,0xd8,0x39,0x54,0x00,0xa7,0xa6,0x32,0xe0, 0x04,...
0
votes
1answer
4k views

Read frequency of input in digital pins

This is a somewhat theoretical question: Let's say I have some sensor that sends digital signals to one of Arduino's digital ports. Now, I don't know the frequency it sends those signals in. For ...
-1
votes
1answer
719 views

Generating Sinusoid Signal of 40khz [closed]

I would like to generate a sinusoidal signal of 40kHz using Arduino Uno. Maximum I could generate was 1kHz, using bit banging, fast PWM. Do you have ideas of how to boost it to 40kHz? I used "...
0
votes
1answer
1k views

Measuring high frequencies (300kHz) with arduino

I'm designing a frequency generator with ICL8038, which would output sine, square and triangle waves, which would reach frequency such as 300kHz. I've already designed a circuit around the ICL8038, ...
0
votes
1answer
2k views

Measuring frequency of 3-wire 12V fan on Arduino Uno

I am using a PC 12V fan (40x40mm), which I control speed with voltage (with adjustable power supply). I would like to measure the frequency of the fan with Arduino and read it on serial monitor. I've ...
1
vote
2answers
144 views

How to add prefactor to clock frequency at compile time?

I want to use an Arduino Mega at 8MHz because my power supply is bad and I have only 4.3V (no way I can fix that), which is outside the operation range of the ATMega1280 at 16MHz. I think the right ...
0
votes
1answer
80 views

Where is CLKPR located on Ubuntu 16.04 with Arduino 1.8.3

I would like to see the definition of CLKPR. I guess that similarly to PORTB and other registers, it should be defined by the toolchain? (see Where is PORTB defined? ) Am I right? Where should I look ...
1
vote
1answer
2k views

Arduino Due's clock frequency

I want to change the clock frequency of the Arduino Due. The default value of the main clock, according to the SAM micro-controller, is 4 Mhz. But I found in some forums that it is 84 Mhz. But I need ...
2
votes
1answer
72 views

Arduino Due custom platform for school and library installation

I have made a custom-development hardware for our school, where you can plug in an Arduino Due. It is mainly for driving all kind of motors and reading sensor signals. Therefore I added a custom SAM ...
2
votes
0answers
19 views

Deceleration time logger between frequencies

i need to measure the air resistance and roll resistance of a vehicle. I plan on using a toothed disc with a proximity sensor which will output a square wave signal in to an arduino. Then I will drive ...
2
votes
2answers
913 views

Can I read two PWM signals and output two square waves on an UNO?

My system requires that I read two independent PWM signals (60hz) and output two corresponding square waves. These output square waves vary in frequency according to their corresponding input duty ...