Coder Social home page Coder Social logo

bootcamp_embedded's Introduction

Bootcamp embedded development

Development on atmega328p: 8-bit AVR microcontroller.

A walk through interrupts, timers, adc, eeprom and communication protocols: uart, i2c, spi.

Readings of datasheets and schematics.

Communication with peripherals:

  • SPI RGB LEDs
  • I2C temperature and humidity sensor
  • I2C Real Time Clock
  • I2C 16-Bit l/0 Expander
  • I2C LED screen

The end project is about developing a firmware:

The program has several modes to display different things on the 7-segment (led screen). When you press SW1, you go to the next mode. When you press SW2, you go to the previous mode. After the last mode, we return to the first. LEDs D1-D4 display in binary the mode in which we are currently.

Here's what each mode does:
• 0: Displays the ADC value of RV1 in decimal (0 to 1023).
• 1: Displays the value of the ADC connected to the LDR R14 in decimal (0 to 1023).
• 2: Displays the value of the ADC connected to the NTC R20 in decimal (0 to 1023).
• 3: Displays the MCU internal temperature value in decimal (0 to 1023).
• 4: Displays "-42-" and causes LEDs D5, D6, D7, D8 to flash red, then green, then blue (1 second between each color)
• 5: Displays the ambient temperature in Celsius.
• 6: Displays room temperature in Fahrenheit.
• 7: Displays humidity in percent.
• 8: Displays the time in 24 hour format (23:23).
• 9: Displays the day and month.
• 10: Displays the year.

It must be possible to set the date and time via the serial port. By sending for example: "28/02/2023 18:03:17"

Code is available here


42chips_devboard.jpeg

The 42Chips devboard

bootcamp_embedded's People

Contributors

jibus22 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.