Simple PWM demo using a Pot(ADC)

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Created simple project to adjust PWM duty cycle using a Pot connected to an ADC channel and as a bonus also send ADC value to the USART demoing how to send multi-byte values via serial.

Hope it helps someone.

 

AVR atmega8 1MHz

ADC

PWM from timer1

USART

 

Compiler Imagecraft C (jumpstart C for AVR) v8

Code and project in Project section of this website

project name same as this post title

zip file with all project files and source code

Jim

 

 

(Possum Lodge oath) Quando omni flunkus, moritati.

"I thought growing old would take longer"

 

Last Edited: Wed. Aug 5, 2020 - 09:09 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That's the way to show 'em!!  You can have a lot of fun with both of those...turn the dial & control the future.

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Wow I'd forgotten that there was a "Projects" section here at all!

 

Anyway I think it's probably an idea to give this link to the item in question: https://community.atmel.com/proj...