Loading...
Welcome,
Guest
. Please
login
or
register
.
May 21, 2013, 06:57:38 pm
|
Arduino Forum
::
Using Arduino
::
Microcontrollers
:: PWM
« previous topic
next topic »
Pages: [
1
]
Go Down
Print
Author
Topic: PWM (Read 294 times)
0 Members and 1 Guest are viewing this topic.
Aviator
0
Offline
Newbie
Karma: 0
Posts: 9
Arduino rocks
PWM
«
on:
April 27, 2011, 01:48:20 pm »
Bigger
Smaller
Reset
I am using an Arduino MEGA2560.
We are using the crystal timer in the chip to generate a PWM square wave
that we send out on a low voltage line.
That square wave must be within 985 and 1015 Hz.
The earlier boards we were using were generating a speed of exactly 980 and for some
reason it was working. But newer boards are putting out 978 and it
will not work with the device communicating with the signal on the other
end.
Because the raw clock speed is 16 MHz, and it only allows you to divide it
by multiples of 2, we can't fine tune the square wave to what we need.
How can we do this with either hardware or software?
Any assistance or suggestion would be greatly appreciated.
Logged
Coding Badly
Global Moderator
Dallas
Offline
Shannon Member
Karma: 118
Posts: 10148
Re: PWM
«
Reply #1 on:
April 27, 2011, 02:04:21 pm »
Bigger
Smaller
Reset
Quote
How can we do this with either hardware or software?
This changes the PWM frequency for timer 1 pins to 10 KHz but the technique is the same for any frequency...
http://arduino.cc/forum/index.php?topic=58757.0
Logged
Pages: [
1
]
Go Up
Print
« previous topic
next topic »
|
Arduino Forum
::
Using Arduino
::
Microcontrollers
:: PWM
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> General Discussion
-----------------------------
Using Arduino
-----------------------------
=> Installation & Troubleshooting
=> Project Guidance
=> Programming Questions
=> General Electronics
=> LEDs and Multiplexing
=> Displays
=> Audio
=> Motors, Mechanics, and Power
=> Sensors
=> Networking, Protocols, and Devices
=> Interfacing w/ Software on the Computer
-----------------------------
Topics
-----------------------------
=> E-Textiles and Craft
=> Robotics
=> Science and Measurement
=> Home Automation and Networked Objects
=> Device Hacking
=> Education and Teaching
=> Interactive Art
=> Product Design
-----------------------------
Development
-----------------------------
=> Suggestions for the Arduino Project
=> Other Hardware Development
=> Other Software Development
-----------------------------
Community
-----------------------------
=> Website and Forum
=> Products and Services
=> Gigs and Collaborations
=> Workshops and Events
=> Local Groups
=> Exhibition / Gallery
=> Bar Sport
-----------------------------
International
-----------------------------
=> Deutsch
=> Español
=> Français
=> Italiano
=> Portugues
=> Scandinavia
-----------------------------
Forum 2005-2010 (read only)
-----------------------------
===> Uno Punto Zero
===> Bar Sport
===> Frequently-Asked Questions
===> News
===> Exhibition
===> Workshops
===> Interfacing
===> Bugs & Suggestions
===> Development
===> Troubleshooting
===> Portugues
===> Deutsch
===> Español
===> Français
===> Italiano
===> Scandinavia
===> Development
===> Interfacing
===> Syntax & Programs
===> Bugs & Suggestions
===> Troubleshooting
===> Report Spam at Arduino.cc
===> Forum
===> Playground Wiki
=> General
=> Hardware
=> Software
=> International
=> Web/Forum/Email/Spam
-----------------------------
Using Arduino
-----------------------------
=> Storage
=> Microcontrollers
-----------------------------
International
-----------------------------
===> Humor y Debate
===> Talleres, Encuentros, ...
===> Tutoriels et cours
===> Réalisations et Projets Finis
===> Le bar
=> Nederlands
===> Software
===> Hardware
===> Proyectos
===> Documentación
=> India
===> Hardware
===> Software
===> Megatopic
-----------------------------
Products
-----------------------------
=> The Arduino Starter Kit
=> Arduino Due
-----------------------------
International
-----------------------------
===> Generale
-----------------------------
Products
-----------------------------
=> Arduino Esplora
=> Arduino GSM Shield
-----------------------------
Maker Faire Rome - The European Edition
-----------------------------
=> Makers
=> Events and Tour
Loading...