Skip to content

WIP: Adrianino. New Hello Board with ATtiny1614. New FTDI +UPDI+VCC.

Adrián Torres requested to merge adrian.torres/index:patch-1 into master

This idea arose because I wanted to create a board with the new microcontrollers, in this case the ATtiny 1614, where the student can test different inputs and outputs on a single board.

Adrianino2

Adrianino_v2

This board has FTDI and UPDI + VCC connection to program it without the need for external power (or the FTDI). It contains a voltage regulator to power the board with a power supply (9V battery). It has two 9V power connections to for example power a DC motor driver. Then there are 4 outputs or inputs with VCC and GND on each side to be able to connect different inputs or outputs. On the left there is an I2C connection to connect an LCD, OLED or a sensor that uses this communication. There are 3 outputs or inputs at the bottom and with a GND pinout. There is an LED and an integrated button, which will help us to test that the microcontroller works with a simple program. Through the FTDI connection we can read the data from the different sensors through the Serial.

Hello UPDI+VCC

At the time of programming, until now I used the Hello USB-serial.FT230X + Hello serial-UPDI.FT230X and also the power supply of the board with an FTDI (which later helps us to read through the Serial). With this adapter we have the Serial + UPDI + VCC adding a higher pin, without the need to use another FTDI to power the board.

updi_vcc

updi_vcc_1

updi_new

updi_new

EXAMPLES WITH INPUTS OR OUTPUTS

  • LCD

LCD

  • Servo

servo

  • Pyroelectric

pir

  • Radar

radar

  • Sonar

ultrasound

VIDEO I leave a small video where I test a Blynk, the button, the doppler radar sensor, pyroelectric, ultrasound (with Processing interface), a servo and an LCD through I2C.

attiny1614

DATASHEET

I combine the Datasheet image with the one from the SpenceKonde website on the ATtiny1614.

  • 14 pin package.
  • Two internal clocks 16 and 20 MHz.
  • 16 KB Flash Memory.
  • 256 B EEPROM.
  • 2 KB SRAM.
  • Maximum voltage: 6V; minimum voltage -0.5 V.

After looking at the basic features, you will find the pinning of the microcontroller.

week08.04

  • VDD: Supply voltage.
  • GND: Ground.
  • Digital pins: Port A: PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7. Port B: PB0, PB1, PB2, PB3.
  • Analog pins: PA1, PA2, PA3, PA4, PA5, PA6, PA7. Port B: PB0, PB1.
  • UPDI Programming pin: PA0 (physical pin number 10).
  • External Clock Pin: PA3.

All I/O pins can be configured with internal pullup resistance.

Within the communications section there are different types and their pins are different. It is clear that the different communication protocols cannot all be used at the same time, because they have pins in common.

  • USART - Universal Synchronous and Asynchronous Receiver and Transmitter: It has the RX (PB2 or PA2) and the TX (PB3 or PA1).
  • SPI - Serial Peripheral Interface: It has only MOSI (PA1), MISO (PA2), SCK (PA3), SS (PA4) .
  • TWI - Two Wire Interface (I2C): It has SDA (PB1 or PA1) and SCL (PB0 or PA2).

Another important thing that the datasheet is telling us is that you have to keep in mind which kind of input component you are using, digital or analog: for instance, if you are using a temperature sensor (analog component) you have to connect it to an ACD (analog to digital converter) port otherwise the microcontroller isn't able to transform the information that is receiving from the sensor to a digital data.

Edited by Adrián Torres

Merge request reports