mi14chal
Newbie level 5
- Joined
- Oct 30, 2010
- Messages
- 9
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,354
Hello.
I'd like you to show my new project. I've never had a generator and an oscilloscope so I decided to make these. I started making oscilloscope on Atmega32, but later I bought LPC2138 and it has DAC so I decided to change uC to LPC.
Generator
Few words about generator. Generator can generate sine wave, square wave and triangle wave. You can adjust duty cycle in range 1-99%. Amplitude of generating signal is 3.3V. I used an internal DAC to make this generator.
Oscilloscope
I used an internal ADC to make oscilloscope. It has these features:
time/div: 50us/div-500ms/div
voltage/div: 1V/div-50V/div
detection signal DC/AC
calculate frequency and duty cycle
calculate voltage
All values: frequency, duty cycle and voltage calculate only on based values from ADC that means frequency and duty cycle could not be accurate. Firstly oscilloscope detect signal if it is AC then calculate frequency, duty cycle and maximum of voltage. If detected signal is DC then only calculate average of voltage. Input of oscilloscope is very simple I only used a voltage divider and a range of input signal is ±30V.
LCD
I used LCD with a driver KS0108.
How to use these
I used 5 keys to choose option and input data for generator you can enter value through for example terminal Putty.
Code
I wrote it in C.
Video
On video I show you 3 different waves and measurement voltage of transformer. You can also watch earlier version of oscilloscope on Atmega at my YouTube channel.
Summary
This is simple oscilloscope with generator but what it's important it works. At main screen you can see a clock with thermometer as RTC: PCF8583, thermometer: DS18B20 and EEPROM: ATMEL24C256 to storage a configuration.
You are welcome to post your opinions of my project.
I'd like you to show my new project. I've never had a generator and an oscilloscope so I decided to make these. I started making oscilloscope on Atmega32, but later I bought LPC2138 and it has DAC so I decided to change uC to LPC.
Generator
Few words about generator. Generator can generate sine wave, square wave and triangle wave. You can adjust duty cycle in range 1-99%. Amplitude of generating signal is 3.3V. I used an internal DAC to make this generator.
Oscilloscope
I used an internal ADC to make oscilloscope. It has these features:
time/div: 50us/div-500ms/div
voltage/div: 1V/div-50V/div
detection signal DC/AC
calculate frequency and duty cycle
calculate voltage
All values: frequency, duty cycle and voltage calculate only on based values from ADC that means frequency and duty cycle could not be accurate. Firstly oscilloscope detect signal if it is AC then calculate frequency, duty cycle and maximum of voltage. If detected signal is DC then only calculate average of voltage. Input of oscilloscope is very simple I only used a voltage divider and a range of input signal is ±30V.
LCD
I used LCD with a driver KS0108.
How to use these
I used 5 keys to choose option and input data for generator you can enter value through for example terminal Putty.
Code
I wrote it in C.
Video
On video I show you 3 different waves and measurement voltage of transformer. You can also watch earlier version of oscilloscope on Atmega at my YouTube channel.
Summary
This is simple oscilloscope with generator but what it's important it works. At main screen you can see a clock with thermometer as RTC: PCF8583, thermometer: DS18B20 and EEPROM: ATMEL24C256 to storage a configuration.
You are welcome to post your opinions of my project.