Another two-day workshop about microcontrollers, soldering and Tinusaur

Another two-day workshop about microcontrollers, soldering and Tinusaur

There was another “Microcontrollers, soldering and Tinusaurworkshop in our town of Veliko Tarnovo, few days ago..

The first day we assembled some boards, the second day we wrote some programs.

For the younger kids, there were much simpler things to do – soldering blinking LED with 2 transistors, few other components, and a battery.

Day 1

Just assembling various boards.

Tinusaur Board

This is the Tinusaur Board from the Tinusaur Starter 2 kit.

Tinusaur Board Parts

It wasn’t difficult for anyone to do that. There are markings on the PCB that tell you where to put each component and in what direction.

The only important thing to know is that you solder the RESET button last, before that you solder the batter socket on the bottom side of the PCB.

Tinusaur Shield LEDx2

This is the Shield LEDx2 from the Tinusaur Starter 2 kit.

Tinusaur Shield LEDx2 Parts

This shield is an upgrade from the previous Tinusaur Starter where we had to solder the LED and the resistor to a tiny 2-pin male header. With the shield is so much easier and fun.

LED Matrix 8×8 with MAX7219 Controller

This is a LED matrix 8×8 with a MAX7219 controller.

LED Matrix 8x8 MAX7219 Controller

That was something new. They sell on eBay at very affordable price: http://www.ebay.com/itm/191736585164

Even while we’re soldering it people were coming with ideas what we could do with it.

Day 2

The second day was dedicated to programming what we’ve assembled the previous day.

Software and Arduino IDE Setup

That’s how we started the day 2.

Short guide about how to setup the Arduino IDE to work with the Tinusaur boards is available at Arduino IDE Setup page.

Blinking LED

The “Hello, World!” in the microcontrollers’ world.

Source code available at https://bitbucket.org/tinusaur/tutorials/src/default/tut004a_blinking_leds/.

Separate blog post and tutorial page will be available soon.

LED Matrix 8×8

The biggest challenge here was to make the MAX7219LED8x8 library to work in the Arduino IDE environment.

We’ll do another post about that in the next few days.

 

How to Setup the Arduino IDE to Work with the Tinusaur Boards

Arduino IDE for Tinusaur Boards

UPDATE: There is an updated version of the Arduino Setup Guide at our new website https://tinusaur.com/guides/arduino-ide-tinusaur-setup/

This is a short guide how to setup the Arduino IDE to work with the Tinusaur boards.

What it does basically is to make it work with the Atmel ATtiny85/45/25 microcontrollers. The only difference is that it will appear on the list of boards as Tinusaur – this is done for convenience, so relatively inexperienced people won’t get confused by the long list of unknown boards and microcontrollers.

Installing the Arduino IDE

First of all, we need the Arduino IDE itself. It could be downloaded from https://www.arduino.cc/en/Main/Software – the official Arduino website. The current version at the time of writing this guide was 1.6.8 but should work with all the most recent versions.

Start the Arduino IDE first.

 

Adding Support for the Tinusaur Boards

Go to the menu File / Preferences.

Find the “Additional Boards manager URLs” and the button on the right that will open an edit box.

Put the following URL in the edit box:

https://bitbucket.org/tinusaur/arduino-ide-boards/raw/default/package_tinusaur_attiny_index.json

NOTE: It is possible to have multiple URLs as long as they are put on separate lines.

Close the edit dialog by pressing “OK”. Close the “Preferences” dialog by pressing “OK”.

Go to the menu Tools / Board:… / Boards Manager.

This will open an additional dialog window with boards information.

You may need to wait until all data is loaded.

From the drop-down menu “Type” choose the “Contributed” item.

Locate the “Tinusaur Boards” item and click on it.

Press the “Install” button. That will install the necessary files into the Arduino IDE.

Close the dialog by pressing the “Close” button.

Setup to use the Tinusaur Board

Go to menu Tools / Board:…

The Tinusaur should be available somewhere at the bottom of the list. Choose the Tinusaur.

It is important to setup the other parameters for the board.

Go to menu Tools / Processor:… and choose the appropriate CPU type. If unsure choose ATtiny85.

Go to menu Tools / Clock:… and choose the appropriate CPU frequency. If unsure choose 1 MHz.

Go to menu Tools / Programmer:… and choose the appropriate programmer. If unsure choose USBasp.

That’s it.

Another version of this guide but with screenshots is available at the Arduino IDE Setup page.