embarcas is a projecto for studiying embedded systems, and mark my progress, all in C/C++
the project still in development and the next updates will be coded in the following tasks:
- led blinky
- RGB led blinky
- SimulIDE circuits
- Seven Segments Display (SSD)
- Shift Register (SR)
- LCD Display
- KiCAD eletronic schematics
- more...
before start, verify if you have the following things:
- you have installed avr-libc, avr-g++, avr-gcc and avrdude (in debian systems you can do a
sudo apt-get install avr-libc avr-g++ avr-gcc avrdude) - you have installed
maketool in your machine (probably any unix system come with this tool) - you have installed
gccandg++for C/C++ development purposes
For install embarcas first you need:
- clone repository
$ git clone https://github.com/roqueando/embarcas.git- build hex file
$ make build- build test.c
$ make build-testTo use embarcas you need to flash this generated hex file in some AVR microchip, most specific atmega328p (or Arduino Nano), for learning I'm using SimulIDE for simulating all eletronics schematics with simulation by running my code.
You can use SimulIDE and open the desired circuit but always will be the main.hex that will be loading, so be sure that the code is correct with the circuit that you want to run.
- Ctrl+O to select the circuit file
- Select in the
circuits/<circuit_file_name>.sim1 - Right click on the board (probably mega328PB-XX) and select
Load firmware - Choose your generated main.hex file.
- Start simulation and enjoy!
Usually I use the Arduino Nano board but if you have a AVR atmega328p, this will run perfectly.
- build the hex file
$ make build- Make sure that you have plugged your board into your PC and have
/dev/ttyUSB0port, if your board is in another serial port, change in Makefile (I'll make this more flexible later) - Run the flash command with avrdude
$ make flash- See your program running in your board!
