Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

jakub-gonet/AVR_O-scope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AVR Oscilloscope

This project is created in order to allow gathering some analog data from circuits by the atmega uCs.

It's doing this by doing continous ADC conversion and writing results to internal buffer. When buffer is full, conversion is stopped and data is send via USART.

This project is written in C++ with HAL which covers nearly entire AVR internals (besides interrupts handlers).

PC side plotter and images of working setup can be viewed here

Compiling

cd O-scope
avr-gcc -Os -Wall -std=c++17 -DF_CPU=1000000 -mmcu=atmega8 ./src/main.cpp -o ./bin/main.elf
avr-objcopy -j .text -j .data -O ihex ./bin/main.elf ./bin/main.hex
avrdude -p m8 -c usbasp  -e -U flash:w:./bin/main.hex

Running tests

cd O-scope
g++ ./test/lib/main_test.cpp -c //this may take a long time, but it's needed only once
g++ ./test/lib/main_test.o ./test/adc_test.cpp -o ./test/tests && ./test/tests

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages