Questions tagged [oscillator-clock]

Refers to a crystal oscillator.

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

NRF24l01 with Atmega 32u4 and internal clock

Will the nrf24l01 work with the Atmega 32u4 if I am using the 32u4's internal clock, or must I have an external clock source?
0
votes
0answers
27 views

Mistaken Connect 5V to SCK Pin

i have old chinese old hotair station that controls by atmega8l 8ua chip.. and the board designer are clever enough to put 2 identical dc plug, 1 is 5v supply cable.. the other one is on off switch ...
0
votes
2answers
42 views

Is it possible to output a variable clock using Fast PWM?

I am trying output a clock and change its frequency dynamically with a rotary encoder. When the code for the rotary encoder is included the clock doesn't reach its max freq(31Khz). But without the ...
0
votes
0answers
42 views

Why can you use FTDI with an ATMega328 with no external crystal?

I have read that serial (UART) communications are unreliable or will not work when using the 8MHz internal oscillator as the clock source. For example here are two results from a quick google. http:/...
1
vote
0answers
55 views

Clock cycle count count for the same command is not equal in ESP32

I am using ESP32 Pico Kit with Arduino Ide. I want to measure operation cycle for a few commands. The code is so simple as below: void setup() { Serial.begin(9600); } void loop() { unsigned ...
0
votes
0answers
26 views

Arduino Due Custom Clock Output

I have Arduino Due, and I want it to output clock at 3.072MHz (which is a clock rate used for I2S) How do I go about this? I tried the following code, but it doesn't give the exact rate, and I ...
0
votes
2answers
52 views

RC-oscillator calibration in real time

This pesky watchdog RC oscillator is at the limit of its 10% tolerance already at room temperature. i was looking to bringing it to more like 5% (it stems from an internak 128 kHz RC oscillator) and ...
-1
votes
1answer
113 views

Can the IDE handle a 32khz main clock?

I read somewhere that having the main clock be 32768Hz messes not only with micros() and millis(), but with some other stuff too. Is this true? Will I have to forgo the Arduino IDE to program for an ...
2
votes
3answers
556 views

Atmega328p - Going low power 1.8V using 4Mhz oscillator - Bootloader flash

I would like to use an Atmega328p micro-controller with a 4 Mhz oscillator in order get some low power consumptions. I am using an Arduino board to flash the bootloader into the Atmega. EDIT In ...
1
vote
2answers
91 views

Arduino Clock Speed effect on Stepper Speed

I am running a Pololu A4988 Stepper driver with two (soon to be three) steppers using the AccelStepper library. I have wired 1/8th microstepping on both as smooth running is important. The motors ...
0
votes
2answers
99 views

Does delay() pause the counting of millis()?

If I add a delay for a few seconds, and then will the value given by millis () be equal just before and after delay? Or to put it in other words, does the internal clock of Arduino stop during delay?
1
vote
1answer
147 views

Errors trying to set fuses on bare Atmega328p

I have an Atmega328p on a board that I want to program using an Arduino programmer. I've got the programmer working to program other Arduino's over ICSP header, but when trying to use the same ...
1
vote
1answer
910 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 ...
0
votes
1answer
270 views

Set clockspeed of Arduino Pro Micro a. k. a. AtMega32u4

Is it possible to change clock speed when running sketch? Low-power lib drops the current consumption from 20mA to 9.5mA at 8MHz, it is still too much. Is there a way how to set clockspeed (for ...
3
votes
1answer
378 views

Which of the clock sources are actually internal to the ATmega328P?

I am trying to determine exactly what all of the fuse settings correspond to on the ATmega328P. The options for the CKSEL bits are: 1111-1000: Low Power Crystal Oscillator 0111-0110: Full Swing ...
0
votes
1answer
1k views

Specify F_CPU in arduino to use 8MHz clock

I am using a custom made AVR board with Atmege-328p on it and it doesn't have a 16MHz crystal on it. I would like to use the internal 8MHz as clock. I have set the appropriate Fuses but now I am ...
0
votes
3answers
670 views

2.4Mhz clock for 3-wire SPI using Arduino Mega 2560

I am trying to develop an Arduino sketch for ADS8320 ADC IC, which is 3-wire SPI. I need a 2.4MHz serial clock for the SPI interface. I tried the code below, but I don't know how to generate clock ...
2
votes
1answer
65 views

Do I Have to Change Internal Interrupt Setups when I Change Clock Speed?

Do I Have to Change Internal Interrupt Setups when I Change Clock Speed? The reason I ask is because I am trying to modify this code: https://github.com/DccPlusPlus/BaseStation/blob/master/DCCpp_Uno/...
6
votes
4answers
589 views

Programming standalone Atmega328p-PU with NE555N timer IC

I know I may sound a little idiotic to ask, but as I have seen in the internet that to program a standalone Atmel chip like that from of the Arduino's, you need 2 22pF ceramic capacitors and a 16mhz ...
0
votes
1answer
328 views

How to burn bootloader/program an ATMega 328P with an external crystal 8 MHz oscilator?

I need to program a ATMega328P on a breadboard, running on an external crystal at 8 MHz. All of the guides I can find either use the arduino environment and describe a 16 MHz config, or using the 8 ...
1
vote
2answers
711 views

My RTC DS1307 isn't returning any information. It seems to be stuck in the isrunning() function. Does anyone have debugging tips?

I'm using an RTC DS1307 to keep track of time for long periods. It seems to be stuck in a function. I'm using the RTClib suggested by adafruit. How can I get it unstuck and get values returned? Are ...
5
votes
1answer
136 views

Replacement crystal on Uno for cold temperatures

I want to run an arduino out in the cold (-40), and use the serial communication - I believe that the crystal is the weakest link (the one for the serial chip) - however I don't see any drop-in (...
3
votes
3answers
808 views

Running quartz clock off an arduino

I am trying to run a clock off of an arduino following this site: http://www.cibomahto.com/2008/03/controlling-a-clock-with-an-arduino/comment-page-1/ and I tried to combine it with this to get it to ...
3
votes
1answer
70 views

Read time digits from DS1307 and run code based on return

I am currently reading a DS1307 adafruit breakout board and I need to drive two nixie tubes from a shift register. The shift register is running two 74141 IC chips. I have code that loops through all ...
2
votes
3answers
4k views

Atmega328P 8MHz External Clock

Has anyone experience configuring the Atmega328P to work with an 8Mhz external clock? I want to reduce the power consumption of the device. If I just connect an 8MHz external quartz oscillator then ...
1
vote
2answers
752 views

Arduino Uno Reading Fuses

I am trying to read the fuse values for the Arduino Uno, but keep getting the following results returned back to me: enter code hereavrdude: Version 6.0.1, compiled on Dec 16 2013 at 17:26:24 ...
7
votes
2answers
4k views

Does the Arduino Uno have two crystals?

Take a look at this picture: I think most of use agree that the "big silvery" thing on the board (red) is the famous 16 MHz crystal of the Arduino. That's what I've believed until very recently. ...
2
votes
3answers
2k views

Change Digispark clock speed, run at low voltage?

I have a low voltage (3.2v) application. I was hoping to use the Digispark. I have a solution using a separate Tiny85, but want to use the Digispark USB programming. To run at lower voltage I think ...
2
votes
0answers
437 views

Options for turning on/off an output at a specific time?

I am building a night light that will turn on when it detects motion using a Passive Infrared (PIR) sensor. I only want the light to turn on overnight, between specific hours that I specify. Outside ...
2
votes
4answers
6k views

Arduino 16 MHz with only 3.3V?

Now I have these Arduino Pro Mini from Sparkfun. They are the latest version that I know (yeah, it's the one that have those horrible misaligned pins). Now they are designed around the ATmega328P and ...
1
vote
1answer
896 views

Change from using the external crystal to the internal oscillator

BACKGROUND I have made my own Arduino PCB based on the circuit of the Arduino Pro Mini (below) (including the external oscillator). I have already written the firmware and the code is stable. The ...
0
votes
1answer
668 views

ATtiny44 millis() not working with 16 MHz external clock

I'm using ATtiny44 with Arduino IDE according to this tutorial: http://highlowtech.org/?p=1695 I have a problem with millis(). When I use an internal 1 MHz clock it works correctly but when I use ...
1
vote
1answer
4k views

How can you reduce the clock frequency of an Arduino Mega?

I'm trying to debug a problem and need to reduce the speed of the clock on my Arduino Mega from 16MHz to 8MHz. I can't find any simple way of doing so, so I wanted to know if there were any gurus ...
0
votes
1answer
413 views

How can you determine the duration of a timer interrupt?

So I understand that when setting a timer interrupt you don't use nanoseconds or milliseconds, but the actual number of clock cycles. However, I don't understand how you would be able to setup a ...
1
vote
0answers
567 views

Serial clock for SPI

I'm trying to configure my ADC(LM98725) registers through Arduino UNO via SPI but I'm facing a small problem, it would be great if somebody help me out. I have to configure my 16 bit ADC registers ...
1
vote
0answers
65 views

Serial Request error

I am working on arduino Uno board.I am trying to send request Serially from out Side using docklight.I am sending COmmand is request send every 5S to 10S and get response.When i tested this code with ...
4
votes
1answer
874 views

Syncing/taking external clock for SPI on Arduino Due

I have an Arduino Due with a SAM3X8E chip and am trying to read SPI data from an external source that is communicating in SPI. I was able to get data by identifying specific bytes that are identifiers ...
5
votes
3answers
4k views

Confusion with ATmega328P and 3.3V/8MHz

Firstly, I have tried to set the bootloader to be 8MHz internal oscillator. I have tried the board setup from here - https://github.com/oshlab/Breadboard-Arduino. And also the breadboard-1-6-x.zip ...
1
vote
3answers
796 views

What are the consequences of different clock speeds on different boards?

I am a programming amateur, arduino noob, trying to decide which board will be better for my project. I need a small board. I am trying to decide between the Teensy 3.2 and the RFduino. I want to have ...
1
vote
1answer
456 views

Why does the Pro Mini 5 v and 3.3 v version have different clock frequencies?

It looks like the 5 volt version used the 16MHz external crystal while the 3.3V one uses the 8MHz crystal. I need to use 3.3v as my operating voltage. Can I just remove the linear regulator and bring ...
9
votes
2answers
2k views

Why is there a clock in my arduino?

Of course I know it is usefull to control the time of a delay, but any other use? With a 16Mhz clock, each line of my program will take 1/16000000 second, right? even a very very big line will ...
1
vote
0answers
54 views

Arduino signed int can't fire timer > 15 seconds

I have tried to use different libraries like TimeAlarms , SimpleTimer, Timer and others. My goal is to call function periodically every minute or so. Each library works fine when repeat time is less ...
2
votes
1answer
461 views

What is the relation between Arduino's clock and possible VGA resolution?

I have seen it said over and over (in different places) that in order to achieve 640x480 resolution out to a DB15 VGA connection, the arduino would need to be clocked at 25Mhz or that at half ...
0
votes
5answers
2k views

Do I have to use an RTC to build a clock?

While I was researching ideas for an Arduino clock, I found several clocks that incorporated an RTC (Real Time Clock) module. I don't know why it is used in some clocks. So, here are my questions: ...
2
votes
1answer
45 views

Input clock limit

If you use an external oscillator, and divide-by-8 internally, can you apply up to 160MHz on PB6? For example, can I use my 50MHz oscillator to clock my 328p @ 6250KHz? Note: when I say oscillator I ...
1
vote
1answer
1k views

Arduino Due SPI speed reduction

I need to reduce the SPI clock speed of the Arduino Due down to about 100 kHz. Unfortunately my hardware doesn't support higher speeds. With the current maximum divider of 255, I can only reach a ...
2
votes
2answers
44 views

The Time are functions do not work correctly when the processor clock speed is set at 128K

How can I change The timers to work correctly when The processor clock is set to 128K instead of 16 M? At present, using the delay function does not work correctly, The delay is far too long.
2
votes
2answers
12k views

Arduino constant clock output

I am controlling an ADC with my Arduino Uno. I would like the clock of the ADC to be the same frequency of the Arduino. Is there any way that I can have a constant clock output from one of the Arduino ...
3
votes
1answer
429 views

Can I reuse crystal frequency of Arduino?

If I use some IC which requires clock frequency like 16MHz, can I take one from Arduino? Or this it too high frequency to travel to neighboring board?
1
vote
1answer
799 views

get current time in nanoseconds

On Arduino due, Is this possible to get the current time in nano seconds? At 84Mhz, I guess it will always be a multiple of ~12ns. And a perfect solution would read a register/variable rather than ...