![]() |
| This is a usefull mapping of the AVR ATmega 168 pins to the Arduino Pins. |
Google+ Page
Showing posts with label School. Show all posts
Showing posts with label School. Show all posts
Monday, November 24, 2014
Friday, October 24, 2014
Lab1 Material : Solderless Breadboards
Using Solderless Breadboards in our Labs is the best approach to provide
the maximum flexibility, which allows us to adapt and change the circuits while we are
experimenting and thus see if our ideas would work in a real world
application.
![]() |
| Solderless Breadboards MB-102 connections by Ralf Fickert |
The holes in the numbered columns are connected together on the
underside of the board. I marked the row 1 to 5 with orange arrows to show how
the holes are connected. As you can see
5 holes a - e and f -
j are connected on each side of the gap. The yellow arrows are showing you
how the power rail holes (Blue ‘– ‘ and Red ‘+’) are connected. Therefore when
you connect a power supply to a hole of the power rail then the power is
available at all connected holes of this power rail. Power rails are located on the top
and bottom of the breadboard.
Multiple breadboards can be joined if required to provide more space for experimenting.
Multiple breadboards can be joined if required to provide more space for experimenting.
- Ideal for high frequency and low noise circuits
- Interconnect any components with 20-29 AWG (0.3-0.8 mm) wire
- Special designed spring clip over 5,000 insertion cycles
- Specifications: 830 points
- Size: 16.5 x 5.4 x 0.9 cm
- Net weight: 77 g
I hope this is useful for you,
Ralf
Tuesday, October 14, 2014
Lab1 Material : Microcontroller ATmega168 Pinout
![]() |
| Microcontroller AVR Pinout for ATmega168 by Ralf Fickert |
Here is an extract from the Atmel datasheet for the ATmega 48A/PA/88A/PA/168A/PA/328/P
Please follow this link to access the complete Atmel datasheet document:
VCC
Digital
supply voltage.
GND
Ground.
Port B (PB7:0) XTAL1/XTAL2/TOSC1/TOSC2
Port B is
an 8-bit bi-directional I/O port with internal pull-up resistors (selected for
each bit). The Port B output buffers have symmetrical drive characteristics
with both high sink and source capability. As inputs, Port B pins that are
externally pulled low will source current if the pull-up resistors are
activated. The Port B pins are tri-stated when a reset condition becomes
active, even if the clock is not running. Depending on the clock selection fuse
settings, PB6 can be used as input to the inverting Oscillator amplifier and
input to the internal clock operating circuit. Depending on the clock selection
fuse settings, PB7 can be used as output from the inverting Oscillator amplifier.
If the Internal Calibrated RC Oscillator is used as chip clock source, PB7...6 is
used as TOSC2...1 input for the Asynchronous Timer/Counter2 if the AS2 bit in
ASSR is set.
Port C (PC5:0)
Port C is
a 7-bit bi-directional I/O port with internal pull-up resistors (selected for
each bit). The PC5...0 output buffers have symmetrical drive characteristics
with both high sink and source capability. As inputs, Port C pins that are
externally pulled low will source current if the pull-up resistors are
activated. The Port C pins are tri-stated when a reset condition becomes
active, even if the clock is not running.
PC6/RESET
If the
RSTDISBL Fuse is programmed, PC6 is used as an I/O pin. Note that the electrical
characteristics of PC6 differ from those of the other pins of Port C.
If the
RSTDISBL Fuse is unprogrammed, PC6 is used as a Reset input. A low level on this
pin for longer than the minimum pulse length will generate a Reset, even if the
clock is not running.
Port D (PD7:0)
Port D is
an 8-bit bi-directional I/O port with internal pull-up resistors (selected for
each bit). The Port D output buffers have symmetrical drive characteristics
with both high sink and source capability. As inputs, Port D pins that are
externally pulled low will source current if the pull-up resistors are
activated. The Port D pins are tri-stated when a reset condition becomes
active, even if the clock is not running.
AVCC
AVCC is
the supply voltage pin for the A/D Converter, PC3:0, and ADC7:6. It should be
externally connected to VCC, even if the ADC is not used. If the ADC is used,
it should be connected to VCC through a low-pass filter.
Note that
PC6...4 use digital supply voltage, VCC.
AREF
AREF is
the analog reference pin for the A/D Converter.
ADC7:6 (TQFP and QFN/MLF Package Only)
In the
TQFP and QFN/MLF package, ADC7:6 serve as analog inputs to the A/D converter.
These pins are powered from the analog supply and serve as 10-bit ADC channels.
All the best,
Ralf
Friday, October 10, 2014
Lab1 Material : Microcontroller Basics
![]() |
| Microcontroller Block Diagram by Ralf Fickert |
The high level Microcontroller Block Diagram above hopefully makes it easy for the
children to understand the basic components common to any Microcontroller.
It
is suggested to have a poster of this Microcontroller Block Diagram on a wall
in the Lab always visible for the children as well as to give them a copy of it.
In case that you are executing the Lab in another Language than English I would
highly recommend to keep the diagram in English and translate it during talking
to the children into their language when you are executing the Lab. This will
help the children to learn the English terminologies as a side effect of the
Lab. By doing so the children will start to understand how important the English
language is in order to have the broadest access to information and as well to worldwide resources/communities.
Having the capability to collaborate world wide will enable them to participate,
learn, share with project teams which are not necessarily in the same country
in which the children live – that will not only help the children to bring their dreams into
the real world but also to give them early access to new technologies and
knowledge. Being able to collaborate world wide ensures also a great world wide
network for the children’s future.
Working
with the Microcontroller is fun – the Microcontroller is the Portal to the real
world.
A lot of Toys and equipment’s are using Microcontrollers such as Robosapien, Battleships, SmartPhones, Oven, TV Remote Control, Security systems etc. SmartHomes are impossible without using Microcontrollers – so for the children it is important to learn how Microcontroller work and to be able to invent their own Microcontroller based SmartHomes equipments or at least to be able to modify them to ensure the SmartHomes is not going to be an external controlled prison at the end.
A lot of Toys and equipment’s are using Microcontrollers such as Robosapien, Battleships, SmartPhones, Oven, TV Remote Control, Security systems etc. SmartHomes are impossible without using Microcontrollers – so for the children it is important to learn how Microcontroller work and to be able to invent their own Microcontroller based SmartHomes equipments or at least to be able to modify them to ensure the SmartHomes is not going to be an external controlled prison at the end.
Major manufacturers of microcontrollers are Atmel Corp. , Microchip Technology Inc. and Texas Instruments Inc.
We will
use the Atmel
Microcontroller AVR Mega: ATMEGA168-20PU, DIP-28 for our Lab.
Central
Processing Unit (CPU)
The
Central Processing Unit (red box) short CPU is the brain of the Microcontroller.
And the same as our Brain does the CPU of the Microcontroller interpret, process,
act and create new information on the information it receives. In order to act
with the real world the CPU needs sensors to understand the environment such as
temperature, humidity, speed, light conditions, heart beats, sugar level , if a
door is open or closed etc. and the CPU needs actuators such as motors, valves,
sounds etc. to impact the real world.
Memory
Random Access Memory (RAM)
The RAM (right
light blue box) can be compared to our short term memory. The RAM is used to
keep the current important information in focus such as our brain does. The information
stored in the RAM is lost after a power cut, reset or restart of the
Microcontroller. So information stored in the RAM is volatile.
Flash Memory
The Flash
(right light blue box) is the memory where the compiled program code is stored.
The Flash is non-volatile and will not be lost after a power cut, reset or restart
of the Microcontroller.
Electrically Erasable Programmable
Read-Only Memory (EEPROM)
The
EEPROM (right light blue box) provides a non-volatile memory for storing data.
Clocks/Counters/Timers
Oscillator
The
Oscillator (bottom dark blue box) sets the chips internal rate and controls how
much work can be done in a given time. The oscillators speed is like the heartbeat
of the chip.
Interrupt Request (IRQ)
The
Interrupt Request (bottom black box) sends an interrupt request to the CPU to
stop whatever it is doing at the moment to be able to react on a specific event
which just occurred.
Peripherals Input/Output
The Peripherals
Input/Output (top black box) provide the Microcontroller with the capability to
interact and communicate with the Real World via sensors or actuators.
Sensors
will provide the Microcontroller with information of the current state of the
environment such as current temperature, speed, humidity, blood pressure, GPS
position, power is on, window is open etc.
Human’s sensors would be eyes, ears, nose, tongue, skin, etc.
Human’s sensors would be eyes, ears, nose, tongue, skin, etc.
Actuators
enable the Microcontroller to physically act in the Real World based on the
information received by the sensors or instructions of the program.
Actuators could for example close an open window automatically when we leave the house, or turn down the heating if the temperature reached a threshold, execute an alarm in the case movements are recognized within a monitored room, stop a robot when an obstacle is detected etc.
Actuators could for example close an open window automatically when we leave the house, or turn down the heating if the temperature reached a threshold, execute an alarm in the case movements are recognized within a monitored room, stop a robot when an obstacle is detected etc.
Human’s
actuators would be hand, fingers, knees, elbows, mouth etc.
Data Bus
The Data
Bus transports the information from one component to the desired other
component. For example the CPU could request data from the Memory – the data
from the memory would be put onto the data bus and received by the CPU – the CPU
then processes this information and could then base on the result of the information
analysis send the request via the data bus to an actuator like a motor to turn
until a window is closed.
The data
bus is the communication vehicle between all components connected to the bus and
via the peripherals even the real world is part of the communication.
I hope
this document is useful for you,
Ralf
Labels:
Actuators,
ATmega,
Atmel,
AVR,
Fickert,
Inventors,
Inventors:Force,
Lab1,
Learn,
Maker,
Microcontroller,
Ralf Fickert,
School,
Sensors
Subscribe to:
Posts (Atom)




