Brainbox AVR

100% compatible with Arduino

  netherlands_640Ga naar de Nederlandstalige Pagina

 


 


MENU

WHAT IS “BRAINBOX AVR”?

YOUTUBE

PINOUT

BRAINCHART

ORDERING INFO

COURSEWARE

SCHEMATIC BBA

DOWNLOADS

EXAMPLE PROJECTS

PROGRAMMING LANGUAGE? 

POWER OPTIONS & JUMPERS

STEM CERTIFIED

WHAT IS “BRAINBOX AVR”?

The Brainbox AVR (2016) is 100% compatible with Arduino but it is more than just an Arduino Leonardo. It has rugged screw connectors, four 600mA outputs, it has Servo outputs, Bluetooth, RS232 and I2C options and a lot of power options . It can be immediately used in many project without the need for breadboards or shields. It is perfect for education and hobby purposes and at this website you can find a lot of free lesson material.

 

  • Rugged Screw connectors – no need for Breadboards
  • Analog and DIgital IO pins with their own 5V en GDN connections
  • 4 x 600mA power outputs
  • 2 servo connectors
  • Connector for  HC06 Bluetooth module
  • I2C, RS232 en SPI connectors
  • Compatible with Arduino shields
  • Power options via Adapter, USB, Battery (6V, 9V, 12V), Power supply
  • Programmable with Arduino IDE, Flowcode, C en S4A, ARdublock, …
  • Free courseware – zie below
  • All programs are fully tested
  • Free support by the designer via mail
  • High-Res Graphics

BBA LAYOUT

YOUTUBE

VIDEOMANUAL: HARDWARE BRAINBOX ARDUINO

VIDEOMANUAL: COURSEWARE & SOFTWARE BRAINBOX ARDUINO

PINOUT BRAINBOX AVR

click on the image to enlarge


BRAINCHART

Brainchart

 click on the image to enlarge


ORDERING INFO

order via mail : barthuyskens@e2cre8.be

Brainbox AVR (with Arduino bootloader)
Prices excl vat
1-9 items – 100% tested
47€/piece
+10 items – 100% tested
42€/piece
Extra material
 
Power supply 1.5A –  5V, 6V, 7.5V, 9V, 12V –  2.1mm conn.
15€/piece
USB cable – USB_B -> USB_A – 1.80m
4€/piece
HC-06 Bluetooth module
9€/piece
AVRISPMK2 clone (not necessary – bootloader is already loaded)
xx€/piece
Insured shipping cost inside Belgium (ask for price outside Belgium)
 
small packages / large packages
8€ / 14€
Outside Belgium
Ask for price


COURSEWARE BRAINBOX AVR

SHORT MANUALS
EXAMPLE PROGRAMS
WHAT IS THE BEST PROGRAMMING LANGUAGE FOR YOU (See Below)?
ARDUINO IDE
ARDUINO “C”
FLOWCODE AVR
ATMEL STUDIO 7 “C”
S4A
SNAP 4 ARDUINO
LEDS & BUZZER ON BRAINBOX AVR
O-2 LED
ARDUINO IDE EXAMPLE CODE
ARDUINO IDE “C” EXAMPLE CODE
FLOWCODE EXAMPLE CODE
ATMEL STUDIO 7 EXAMPLE CODE
S4A EXAMPLE CODE
SNAP_4A EXAMPLE CODE
O-BUZZER
ARDUINO IDE EXAMPLE CODE
ARDUINO IDE EXAMPLE CODE
ARDUINO IDE EXAMPLE CODE
ARDUINO IDE “C” EXAMPLE CODE
FLOWCODE EXAMPLE CODE
FLOWCODE EXAMPLE CODE
ATMEL STUDIO 7 EXAMPLE CODE
not possible with S4A
not possible with SNAP_4A
INPUTS
I-DIG          INPUT SENSOR ON/OFF
I-DIG SWITCH
ARDUINO IDE EXAMPLE CODE
ARDUINO IDE “C” EXAMPLE CODE
FLOWCODE EXAMPLE CODE
ATMEL STUDIO 7 EXAMPLE CODE
S4A EXAMPLE CODE
SNAP_4A EXAMPLE CODE
I-DIG INDUSTR_SENS
I-DIG LICHTSLUIS
I-AN          INPUT SENSOR ANALOG
I-AN POTMETER
ARDUINO IDE EXAMPLE CODE
ARDUINO IDE “C” EXAMPLE CODE
FLOWCODE EXAMPLE CODE
ATMEL STUDIO 7 EXAMPLE CODE
S4A EXAMPLE CODE
SNAP_4A EXAMPLE CODE
I-AN LIGHT LDR
I-AN LIGHT PHOTOTRANSISTOR
I-AN TEMP PT1000
I-AN TEMP LM35
I-AN TEMP MCP9700
I-AN DIST. SHARP
I-AN DIST. DIY
I-AN SOUND
OUTPUTS
O-20          ACTUATOR – CURRENT < 20mA
O-20 LED
ARDUINO IDE EXAMPLE CODE
ARDUINO IDE “C” EXAMPLE CODE
FLOWCODE EXAMPLE CODE
ATMEL STUDIO 7 EXAMPLE CODE
S4A EXAMPLE CODE
SNAP_4A EXAMPLE CODE
O-20 RGB LED
O-600          ACTUATOR – CURRENT < 500mA
O-600 DC-MOTOR
ARDUINO IDE EXAMPLE CODE
ARDUINO IDE “C” EXAMPLE CODE
FLOWCODE EXAMPLE CODE
ATMEL STUDIO 7 EXAMPLE CODE
 S4A EXAMPLE CODE
SNAP_4A EXAMPLE CODE
O-600 PNEUMATIC VALVE
O-600 SOLENOID
O-600 STEPPERMOTOR
ARDUINO IDE EXAMPLE CODE
ARDUINO IDE EXAMPLE CODE
Q2 2016
FLOWCODE EXAMPLE CODE
FLOWCODE EXAMPLE CODE
Q2 2016
not yet possible with S4A
not yet possible with SNAP_4A
O-PWM         ACTUATOR – POWER via PWM
O-PWM DC-MOTOR
ARDUINO IDE EXAMPLE CODE
ARDUINO IDE “C” EXAMPLE CODE
FLOWCODE EXAMPLE CODE
ATMEL STUDIO 7 EXAMPLE CODE
S4A EXAMPLE CODE
SNAP_4A EXAMPLE CODE
O-PWM LED
O-PWM RGB LED
O-PWM MOSFET (>500mA)
PHONEMES (TODO)
O-POWER          ACTUATOR  – CURRENT > 500mA
O-POWER RELAY
ARDUINO IDE EXAMPLE CODE
ARDUINO IDE “C” EXAMPLE CODE
FLOWCODE EXAMPLE CODE
ATMEL STUDIO 7 EXAMPLE CODE
see O-20 & O-500 EXAMPLE CODE
see O-20 & O-500 EXAMPLE CODE
O-POWER MOSFET
O-SERVO         ACTUATOR – HOBBY SERVOMOTOR
O-SERVO SERVOMOTOR
ARDUINO IDE EXAMPLE CODE
Q2 2016
FLOWCODE EXAMPLE CODE
Q2 2016
S4A EXAMPLE CODE
SNAP_4A EXAMPLE CODE
O-SERVO RC-CAR
COMMUNICATIE
I2C            COMMUNICATE VIA I2C
I2C LCD
I2C LCD EXTRA INFO
ARDUINO IDE EXAMPLE CODE
Q2 2016
FLOWCODE EXAMPLE CODE
Q2 2016
not possible with S4A
not yet possible with SNAP_4A
RS232            COMMUNICATIE VIA RS232
COMMS BBA & SMARTPHONE (no interrupt)
APPINVENTOR APP
ARDUINO IDE EXAMPLE CODE
FLOWCODE EXAMPLE CODE
 Q4 2016
not possible with S4A
not yet possible with SNAP_4A
COMMS  BBA & SMARTPHONE (with interrupt) – only NL
BBA_01
BBA_02
BBA_03
BBA_04
BBA_01
BBA_02
BBA_03
BBA_04
USB             COMMUNICATIE VIA USB
HID
 Q3 2016
Q3 2016
not possible with S4A
not yet possible with SNAP_4A
USB SERIAL MONITOR
ARDUINO IDE EXAMPLE CODE
Q3 2016
not possible with S4A
not yet possible with SNAP_4A


SCHEMATIC

DOWNLOADS


WHAT IS THE BEST PROGRAMMING LANGUAGE FOR YOU?


ARDUINO IDE

Knipsel IDE

+ Enormously popular and widely used

+ Free

+ Active user-forums

+ Extensive libraries (making programming a lot easier)

+ Brainbox ARduino is directly programmable

– It is still a text based compiler and so very syntax sensitive

– No simulator

– Jou will not learn much about microcontrollers

My Opinion: Ideal if it is not a goal to learn anything about microcontrollers and you are old enough to pay attention to syntax.

Practical:

The ARduino bootloader  – necessary to be able to program the BBA with IDE – is preloaded when you buy a Brainbox Arduino. I case that you should re-load the bootloader – use a AVRISPMK2 or similar and use these settings and hex file: : Brainbox Arduino Bootloader

The Arduino Leonardo uses the USB interface for programming as for communication. For this the processor can emulate 2 virtual com ports. The com port needed for programming is only active for a few seconds after a reset and it might take a few reset cycli to make your computer recognize the BBA.

Correct steps to download code to the BBA:

  1. Press the reset button on the BBA and keep it pressed – holding the BBA in reset mode
  2. in Arduino IDE press “Upload”
  3. From the moment that IDE displays “uploading”, release the reset button.


ARDUINO IDE “C”

IDE C

+ Real usage of  microcontroller registers

+ Free

+ Combination with the libraries is still possible

+ Brainbox ARduino is directly programmable

– Jou realy learn about microcontrollers

– No simulator – still text based

My opinion: This might be the best of two worlds – the usage of real registers in combination with ARduino libraries.

Practical:

The ARduino bootloader  – necessary to be able to program the BBA with IDE – is preloaded when you buy a Brainbox Arduino. I case that you should re-load the bootloader – use a AVRISPMK2 or similar and use these settings and hex file: : Brainbox Arduino Bootloader

The Arduino Leonardo uses the USB interface for programming as for communication. For this the processor can emulate 2 virtual com ports. The com port needed for programming is only active for a few seconds after a reset and it might take a few reset cycli to make your computer recognize the BBA.

Correct steps to download code to the BBA:

  1. Press the reset button on the BBA and keep it pressed – holding the BBA in reset mode
  2. in Arduino IDE press “Upload”
  3. From the moment that IDE displays “uploading”, release the reset button.


FLOWCODE AVR

Knipsel FC6

+ Enormously popular with schools and rapid prototyping

+ Graphical ‘flowchart based’ layer up on ‘C’ – very didactical

+ Realy awsome 24h support by the developers

+ Extensive libraries that can help you to make realy complex programs in no time

+ Flowcode makes use of the real register-names as in the datasheet

+ Awsome simulator with real hardware links

+ Brainbox ARduino is directly programmable

– Not Free

My opinion: From a didactical vieuw, Flowcode is the best programming language in the world to do embedded programming. Complex programs can be constructed and simulated in notime making it the ideal preparation for embedded C programming.

 

Practical:

The ARduino bootloader  – necessary to be able to program the BBA with Flowcode – is preloaded when you buy a Brainbox Arduino. I case that you should re-load the bootloader – use a AVRISPMK2 or similar and use these settings and hex file: : Brainbox Arduino Bootloader

The Arduino Leonardo uses the USB interface for programming as for communication. For this the processor can emulate 2 virtual com ports. The com port needed for programming is only active for a few seconds after a reset and it might take a few reset cycli to make your computer recognize the BBA.

Correct steps to download code to the BBA:

  1. in Flowcode press “Download to microcontroller”
  2. If a popup screen asks you – press the reset button on the BBA

ATMEL STUDIO 7 “C”

STudio72

+ Profession programming environment

+ C of ASM – but usage of the ARduino libs is still possible

+ Brainbox ARduino is directly programmable

+ Free

– Still no simulator for the ATMEGA32U4 processor

Mijn mening: Als je op een professionele manier microcontrollers wil leren programmeren, dan is dit een verantwoorde keuze. Je zal iets meer tijd moeten investeren in het schrijven van bibliotheken en je zal je weg wat moeten zoeken in alle opties, maar dit is een typische omgeving waarin bedrijven ook zullen werken. De voorbeeldprogramma’s op deze site zetten je al een heel stuk op weg.

Openen voorbeeldprojecten Brainbox Arduino in Atmel Studio 7

  1. Open Atmel Studio 7
  2. File >> Open >> File
  3. Selecteer de ‘Atmel Studio 7 Solution file’
  4. Het klaargemaakte en geteste programmeervoorbeeld opent nu in Atmel studio 7
  5. Klik in de ‘Solution Explorer window’ aan de rechterkant op de onderste file met de extensie .cpp – de C code voor het project zou nu zichtbaar moeten zijn

Openen Arduino IDE projecten in Atmel Studio 7

In Atmel Studio 7 is het mogelijk om rechtstreeks Arduino projecten te importeren.

  1. Open Atmel Studio 7
  2. File >> New >> Project
  3. Selecteer “Create project from Arduino Sketch”
  4. Je Arduino project opent nu in Atmel Studio

Brainbox Arduino via USB programmeren via Atmel Studio 7

  1. Download en installeer Atmel Studio 7 (gratis van Atmel Website)
  2. download AVRDUDE via deze link (AVRDUDE is een programma waarmee we een hex file in de processor kunnen laden) (meer info: http://www.ladyada.net/learn/avr/avrdude.html)
  3. Unzip en plaats beide bestanden (avrdude.exe en avrdude.conf) rechtstreeks onder de C:\ directory (u zal even moeten bevestigen dat u administrator bent)
  4. Open Atmel Studio 7
  5. Menu: Tools >> Select profile : Activeer “Advanced” en klik op apply
  6. Tools >> External Tools

STudio7

Title: &PROGRAM_BBA

Command: C:\avrdude.exe  (locatie waar AVRDUDE.exe staat)

Arguments: -F -v -v -v -v -patmega32u4 -cavr109 -P COM14 -b57600 -D -Uflash:w:”$(ProjectDir)Debug\$(ItemFileName).hex”:i -CC:\avrdude.conf

COM14 is de com-poort die gebruikt wordt om de Arduino te programmeren. Deze com-poort is slechts kort zichtbaar na een reset (te testen in applicatiebeheer) . Deze poort is bij iedereen anders en dient dus te worden aangepast.

Debug is een map onder uw projectmap – deze benaming moet dezelfde zijn – controleer deze even.

ItemFileName is de naam van de projectfile maar moet ook verwijzen naar de naam van de hex file. Verander desnoods de naam van de .cpp file om die gelijk te maken aan de naam van de hex file, anders kan avrdude nooit de juiste hex file terugvinden.

  1. Druk op de reset knop en blijf deze knop ingedrukt houden
  2. Laat de reset knop terug los, maar activeer nu wel binnen de 5 seconden: Tools >> PROGRAM_BBA
  3. Als alles goed verlopen is zal uw programma nu naar de BBA gestuurd zijn. Als er iets is misgelopen, dan kan u daar meer info rond vinden in het ‘output’ window.

 

 

 


S4A – SCRATCH FOR ARDUINO

DOWNLOAD HIER DE MANUAL VOOR S4A & BRAINBOX ARDUINO

Knipsel

+ leuke grafische taal – gebaseerd op scratch

+ gratis

+ Deze aangepaste versie werkt mooi met onze Brainbox Arduino

– De hardware moet aan de PC gekoppeld blijven via USB

Mijn mening: Perfect om 10-14 jarigen de eerste stappen te leren in het programmeren en daarbij toch echte hardware te besturen. Er bestaan veel initiatieven om Arduino te programmeren via Scratch. Snap 4 Arduino (zie onder) is ondertussen een betere keuze.

Praktisch

De software die in de Arduino geladen moet worden werd aangepast om perfect te kunnen werken met de Brainbox Arduino. (pins 4&11 en pins 8&12 werden omgewisseld)

Stap 1: gebruik Arduino IDE om deze firmware in de Arduino controller te laden – Download S4A_FIRMW_BBA bestand

Stap 2: installeer de S4A software  – download deze van de S4A website: S4A Website

Stap 3: open de S4A software, klik op de wereldbol links boven en selecteer uw taal

Stap 4:  installeer de Brainbox Arduino Sprite via de knoppen onder de huidige sprite – Download S4A Brainbox Arduino Sprite

Stap 5: Connecteer de Brainbox Arduino aan de PC via USB. Na enkele seconden komt de verbinding tot stand en kan u beginnen.

Deze pinout is specifiek voor S4A projecten aangemaakt.

click to enlarge

click to enlarge


SNAP 4 ARDUINO

originele website: http://s4a.cat/snap/

Download hier de MANUAL ‘Snap for Arduino’ – gemaakt door Bart Huyskens – April 2016 – E2CRE8

Snap4ARduino

+ leuke grafische taal – gebaseerd op scratch – door dezelfde makers van S4A gemaakt, maar nu véél beter.

+ gratis en in het Nederlands

+ Snap4A werkt zeer mooi samen met onze Brainbox Arduino

+ Alle pins van de Brainbox Arduino kunnen gebruikt worden met de originele Arduino pinbenaming

– De hardware moet aan de PC gekoppeld blijven via USB

Mijn mening: Perfect om 10-14 jarigen de eerste stappen te leren in het programmeren en daarbij toch echte hardware te besturen. Er bestaan veel initiatieven om Arduino te programmeren via Scratch. Deze versie was op het moment van testen (april 2016) de meest stabiele.



 EXAMPLE PROJECTS

Potmeter controls DC Motor
ARDUINO IDE
Potmeter controls Servo Motor
ARDUINO IDE
IR Distance sensor result is displayed on LCD
IR distance sensor -connected to A3 – worksheet “I-AN DIST. DIY”
the IR send led is connected bewteen 0V and 5V
The result is displayed on the I2C-LCD
ARDUINO IDE
Buggy uses distance sensor to avoid bumping into wall 
IR distance sensor -connector to A3 – worksheet “I-AN DIST. DIY”
the IR send led is connected between 0V and 5V
Motor L between 5 and 6
Motor R bewteen 9 and 10
ARDUINO IDE
Two phototransistors are used to make a buggy follow the lightbeam from a torch
LIGHTSENSOR L connected to A5 – look at worksheet “I-AN LIGHT PHOTOTRANSISTOR”
LIGHTSENSOR L connected to A0
2 DC motors connections:
MOTOR_L_PWM = 5
MOTOR_L_FR = 6
MOTOR_R_PWM = 9
MOTOR_R_FR = 10
 ARDUINO IDE

 POWER OPTIONS

To make the BBA able to be used in many different projects, the BBA is equiped with jumpers to select the correct prower option for your situation.

 BRAINBOX ARDUINO JUMPERS

JUMPER 1
  • 3 positions – just horizontal
  • 1 jumper max
  • Choice for the 5V power source (USB, Battery, Adapter)
JUMPER 2
  • Coice for the power source for the 4 power outputs (D5, D6, D9, D10)
  • 3 positions – just horizontal
  • 1 jumper max
A STABLE 5V
  • The ATMEGA32U4 uC needs a stable voltage between  2.7 en 5.5 Volt. On our BBA this is 5V. The same 5V is also available at every sensor connector.
  • De led indicating “+5V OK” will indicate is this 5V is OK.
THE LD1117S50  5V REGULATOR

The LD1117S50 is a voltage regulator that transforms voltages between 6V and 15V to 5V.

  • How higher the input voltage – how higher the temperature of the regulator.
  • How higher the current – how higher the temperature of the regulator. – Imax = 500-600mA
  • Shut down temp is 110°C.
THE LP2985-33 REGULATOR
  • makes 3.3V from the +5V – only used for shields.
V-POWER & L-293D H-BRIDGE
  • The 16pin IC on the BBA is a L293D double H-bridge, capable of driving 4 outputs with currents up to 600mA/pin. The voltage of the pins is selectable with jumper 2.
Current from H-brug outputs Temp H-brug (amb 25°C) notes
4 x 100mA continu 58°C OK
4 x 200mA continu 74°C OK
4 x 300mA continu 94°C OK
4 x 400mA continu 110°C Maximum
2 x 400mA continu 87°C OK
2 x 500mA continu 96°C OK
2 x 600mA continu 106°C Maximum

Note : With a small heatsink – the same size as the 16pin IC – the L293D can drive currents up to 500mA/pin.

JUMPER 1 – 5V SELECTION

JUMPER 1  POSITION:  “USB”

BRAINBOX ARDUINO JUMPERS

  • 5V is delivered by USB from PC.
  • 500mA max – protected by self resetting fuse on the BBA
  • H-Bridge is not connected to USB power.
JUMPER 1  POSITION:  “5V FROM ADAPTER”

BRAINBOX ARDUINO JUMPERS

  • Power from adapter or Battery.
  • min 6V / max 15V
JUMPER 1 OP POSITION: “VBATT-0.7V”

BRAINBOX ARDUINO JUMPERS

  • Left situation:  4x AA battery in series (Be aware: Full batteries=  1.55v/cel. 4×1.55V/cel = 6.2V)
  • Right situation:  6V Lead Acid accu

!! Only voltages between 4.5V & 6.2V can be connected in this way. The diode will substract 0.7V to limit the voltage to 5.5V.

JUMPER 2: POWER FOR THE  L293 H-BRIDGE

These 3 jumper positions only determine the voltage of the H-bridge IC.

JUMPER 2 POSITION: “5V FROM ADAPTER”

BRAINBOX ARDUINO JUMPERS

All outputs of the H-bridge will operate at 5V from the LD1117. Be aware that all the currents added – can not exceed 500mA!!

 

JUMPER 2 POSITION: “7-16V”

BRAINBOX ARDUINO JUMPERS

The power for the H-Bridge is taken from a point just before the  LD1117S50 regulator. The voltage of the Bridge is now equal (minus 0.7V of the diode) to the voltage of the adapter or battery.

JUMPER 2 OP POSITIE: “VBatt”

BRAINBOX ARDUINO JUMPERS

STEM CERTIFIED

This material is developed with the STEM principle in mind where creativity and problem solving skills are important.

 

STEM talenten