Tag Archives: ATMEL
Elliot Williams @ hackaday.com show us how to use your Arduino to program AVR TPI enabled microcontrollers.
Turning an Arduino of virtually any sort into a simple AVR 6-pin ISP programmer is old hat. But when Atmel came out with a series of really tiny AVR chips, the ATtiny10 and friends with only six pins total, they needed a new programming standard. Enter TPI (tiny programming interface), and exit all of your previously useful DIY AVR programmers.
Turn Arduino into an AVR TPI Programmer – [Link]
Domen Ipavec shares his temperature alarm for boiling milk. Temperature alarm uses an Atmel attiny841 microcontroller, DS18B20 high temperature waterproof temperature sensor from adafruit, 2×16 HD44780 LCD and a buzzer to do its job.
Anyone who has ever boiled milk on the stove knows, that it has a nasty habit of overflowing. That is why I created the temperature alarm for boiling milk to be used my mother. It continuously measures the temperature of the milk and sounds an alarm when the temperature is over the preset alarm value.
Temperature alarm for boiling milk – [Link]
The LoRa Alliance™ is an open, non-profit association of members who believe that the Internet of Things era is now, its LoRaWAN is a Low Power Wide Area Network with features that support low-cost, mobile, and secure bidirectional communication for Internet of Things (IoT), machine-to-machine (M2M), smart city, and industrial applications. LoRaWAN is optimized for low power consumption and is designed to support large networks with millions and millions of devices. Innovative features of LoRaWAN include support for redundant operation, geolocation, low-cost, and low-power – devices can even run on energy harvesting technologies enabling the mobility and ease of use of Internet of Things.
Check this video to learn more about LoRa and its protocol:
Badgerboard is an Arduino compatible LoRaWAN™ open source development kit, that can be easily extended to a prototype or even a small batch product. Development board has a battery charger and antenna connector on board.
Using as small as the battery you have in your watch, you can power your Badgerboard to send and receive radio waves, that can reach from 1km to 3km in the urban area up to 10+ km in the rural areas
The communication is powered by widely used Microchip LoRaWAN module. There are two editions of the module one using RN2483-I/RM101 for the 433/868 frequency bands and the other is using RN2903-I/RM095 for the 915 MHz band and its sub-bands. The LoRaWAN stack is already part of the module and all needed libraries for LoRa functionality are included.
Here are the features of the module:
Check Badgerboard in action and the possibilities that can be done using it:
Atmel tinyAVR microcontrollers are optimized for applications that require performance, power efficiency and ease of use in a small package. All tinyAVR devices are based on the same architecture with other AVR devices. The integrated ADC, DAC, EEPROM memory and brown-out detector let you build applications without adding external components. The tinyAVR also offers Flash Memory for fast, secure and cost-effective in-circuit upgrades that significantly cuts your time to market.
The latest tinyAVR devices (ATtiny417/814/816/817) by Atmel combine AVR core with CIPs (Core Independent Peripherals). PIC microcontrollers with Core Independent Peripherals (CIPs) already raised the performance of 8-Bit-MCUs to a new level. Since the acquisition of Atmel by Microchip, this is the first time the company leverages features from both MCU families.
So, now the question is:
What Is CIP?
In fact, the term CIP or Core Independent Peripherals is pretty much self-explanatory. Microchip’s description of CIP is:
CIPs allow the peripherals to operate independently of the core, including serial communication and analog peripherals. Together with the Event System, that allows peripherals to communicate without using the CPU, applications can be optimized at a system level. This lowers power consumption and increases throughput and system reliability.
Core Independent Peripherals or CIPs are designed to handle their tasks with no code or supervision from the CPU to maintain their operations. As a result, they simplify the implementation of complex logic control systems and give designers the flexibility to innovate.
ATtiny Models With CIPs:
8-bit Atmel AVR microcontroller with 4KB Flash, 256 bytes SRAM, 128 bytes EEPROM, 20MHz/20 MIPS, two 16-bit timer/counters, one 12-bit timer/counter, RTC, USART, SPI, Two-wire Interface (I2C), 10-bit ADC, 8-bit DAC, analog comparator, accurate internal oscillators and multiple calibrated voltage references, Custom Logic, 10-bytes unique ID, and 24 pins.
- ATtiny814 :
- 8-bit Atmel AVR microcontroller with 8KB Flash, 512 bytes SRAM, 128 bytes EEPROM, 20MHz/20 MIPS, two 16-bit timer/counters, one 12-bit timer/counter, RTC, USART, SPI, Two-wire Interface (I2C), 10-bit ADC, 8-bit DAC, analog comparator, accurate internal oscillators and multiple calibrated voltage references, Peripheral Touch Controller (PTC), Custom Logic, 10-bytes unique ID, and 14 pins.
- ATtiny816 :
- 8-bit Atmel AVR microcontroller with 8KB Flash, 512 bytes SRAM, 128 bytes EEPROM, 20MHz/20 MIPS, two 16-bit timer/counters, one 12-bit timer/counter, RTC, USART, SPI, Two-wire Interface (I2C), 10-bit ADC, 8-bit DAC, analog comparator, accurate internal oscillators and multiple calibrated voltage references, Peripheral Touch Controller (PTC), Custom Logic, 10-bytes unique ID, and 20 pins.
- ATtiny817 :
- 8-bit Atmel AVR microcontroller with 8KB Flash, 512 bytes SRAM, 128 bytes EEPROM, 20MHz/20 MIPS, two 16-bit timer/counters, one 12-bit timer/counter, RTC, USART, SPI, Two-wire Interface (I2C), 10-bit ADC, 8-bit DAC, analog comparator, accurate internal oscillators and multiple calibrated voltage references, Peripheral Touch Controller (PTC), Custom Logic, 10-bytes unique ID, and 24 pins.
Paweł Spychalski faced this problem while building his own weather station that is based on Raspberry Pi. It collects various data and displays them on dedicated web page and Android app. Every few months he tries to add a new sensor to it. Last time it was a daylight sensor. He added this sensor to his system by using ATtiny85 and it was connected via I2C bus.
The Inter-integrated Circuit (I2C) Protocol is a protocol intended to allow multiple “slave” digital integrated circuits (“chips”) to communicate with one or more “master” chips. Like the Serial Peripheral Interface (SPI), it is only intended for short distance communications within a single device. Like Asynchronous Serial Interfaces (such as RS-232 or UARTs), it only requires two signal wires to exchange information.
I2C uses only two bidirectional open-drain lines, Serial Data Line (SDA) and Serial Clock Line (SCL), pulled up with resistors. Typical voltages used are +5 V or +3.3 V although systems with other voltages are permitted.
Most of developers use I2C to connect to sensors with the help of the Arduino “Wire” library or “i2c-tools” on the Pi, but it is rare to see someone that is actually building the I2C slave device. Paweł’s project uses TinyWireS library, a slave-mode SPI and I2C library for AVR ATtiny Arduino projects.
This diagram shows how to build analog to digital converter using ATtiny85 and connect it to any device (Raspberry Pi, Arduino) using I2C bus. Here photoresistor has been used, but any analog meter will be fine: temperature, potentiometer, moisture…
ATtiny85 directly connected to Raspberry Pi via I2C, photoresistor with 10kOhm pull down connected to ATtiny85 and signal LED.
For reading data you can use this code. ATtiny sends current measurement as two 8 bit value. First older bits, then younger 8 bits.
To do this project you need to use Arduino IDE 1.6.6., TinyWireS library,ATtiny45/85 board, plus an 1MHz internal oscillator.
Watchdog timer interrupts ATtiny every few minutes, measures voltage, filters it and stores in memory. Every time read operation is requested, last filtered ADC value (10 bits as 2 bytes). I2C support is provided by TinyWireS library that configures ATtiny USI (Universal Serial Interface) as I2C slave.
This cool weather station and its need of daylight sensor is only an example. The amazing thing is that you can now build new I2C sensors and introduce new modules to your projects easily following Paweł’s steps.
Our AT89Sxx Development Board provides a very simple and cost effective prototyping platform. The compact design provides connection to all the pins of the microcontroller for the user.
- Prototyping solution available for 40-pin AT89xx series microcontroller from ATMEL
- All the four ports available to the user via standard 10 pin box header with supply of 5 VDC for interfacing circuits
- ISP (In circuit Serial Programming) connector available for chips with ISP support
- 11.0592 MHz crystal on board
- Pull-up resistor network for Port 0 of the microcontroller
- UART level shifter MAX232 IC, on board for easy connection of the board to the RS232 devices
- Jumper selectable connection available for connecting the UART level Shifter to the port pins
- On board voltage regulator available for sourcing regulated 5V @ up to 1A voltage to the board and connecting circuit
- Power-On LED indicator
- AUX Power source of 5 VDC available on a PBT connector for sourcing DC supply to interfacing circuits
- Four mounting holes of 3.2 mm each
- PCB dimensions 74 mm x 97 mm
AT89SXX Development Board – [Link]
Mike Rankin created this tiny sensor board with an ARM Cortex M0+ microcontroller and OLED display:
It’s pretty tiny so a 4 layer board made the whole job easier. The top and bottom are pretty much dedicated for components, layer1 are tracks and power traces, layer2 is a ground plane. Mixing up an internal plane and routing layer was interesting.
Atmel SAMD21G Sensor Board – [Link]
A Basic board to test the Atmel SAMD09. On board there is also a CH340 uart to usb bridge
Build this board to getting started with the SAMD microcontroller family after I made the mistake to try the much bigger SAMD21 first. The SAMD09 used here is he smallest from this family and therefore has the shortest (still 709 p.) datasheet. I think this board will be, as my other microcontroller breakout boards, very useful for an early prototyping phase on breadboard. So far I quite like the SAMD09. If you compare it to the the ATmegas there are a lot more possibilities. Maybe this is the Arduino Nano killer for me.
samDEV_09 – Mini devboard for Atmel’s SAMD09 ARM Cortex M0+ Microcontroller – [Link]
educ8s.tv wanted to take a look at this tiny board for a long time. It is very small size, it is low cost and it uses a different processor than the Arduino boards. It uses the ATTiny 85 microcontroller chip, which can operate at a frequency up to 20Mhz. It has 8Kb of flash memory, 512bytes of RAM memory and 6 I/O pins 2 of which can implement the I2C protocol. It is very small in size and has low power requirements. We can program it using the Arduino IDE, which makes things so much easier! I got this tiny board with a USB interface in order to be easier to program. You can find a link for this ATtiny85 board in the description of the video.
educ8s.tv wanted to test if the ATtiny85 board is a good option for simple projects and if we achieve longer battery life with this board that a standard Arduino mini. Let’s find out together.
ATTiny85 board A First Look and review – [Link]