Hi, welcome to video tutorial from Robojax. In and this video are going to
introduce the digit stamps Digispark USB development board
this has arduino compatible board. let's get started with this
My name is Ahmad Shamshiri and I am presenting this tutorial form Canada.
if you compare the Arduino Uno what Digispark as you can see it's about
eight to ten times smaller than that and it takes a little space the size and
compatibility makes it suitable for many applications if you need fewer pin than
Arduino UNO this has 6 pins and some power reduction this is suitable for
tons of application Arduino Uno is based on this chip and this one we have a
smaller chip AtTiny85 I'm going to show you how to prepare your Arduino IDE
and then do some blink (LED) test and how to start using this the upcoming videos
that you have a lot of projects make sure to subscribe so you can get updates
on those
Hardware explained
this is the board and these are the connection for USB which you can insert
it in your computer when you purchase it usually it shipped with pin header like
this we have to solder them here. for the three pins we needed header with the
three we just cut the three pieces then we solder the pins here
you
now solder the pin header from here pin zero after than 5 we have 6 pins and
then we have three pin here the pins are labeled here as VIN GND and 5V
volts then here we have a voltage regulator the VIN you will connect it and
once you program this and take it for your application there will not be a
computer or a connection so either you will supply 5 volts via
USB cable in here or you can connect external power here from here you can
connect up to 16 volts the 16 volts come here goes to this 7805 voltage
regulator that regulated to 5 volts that supplies power to this and also you will
be able to get 5 volts at this pin. It can supply up to 500 milliampere from this
pin and not more than that so keep that in mind. and we have here 6 digital pins
that can be used 4 analog pins and we have spi and I2C communication
and it can be programmed by USB very easily we have 2 LEDs here we have 1
power LED and one test LED.here is the schematic diagram as you can see this is
Pin zero we go pan 0 1 2 3 up to 5 so pin 1 is the second pin which has
connected this LED if the status of this pin is high the LED will turn ON. so
this LED is connected pin 1 to this pin the input
pins have been also labeled here but I will use the map. Here is Digistamp
page for this digispark USB board can buy from eBay by typing DG spark 80 tiny
85 or just digispark and you will see the option and it is sold here for 1.75
and you have to wait for 50 days to get it
maybe sometimes 70 days or you can get it from Amazon as well for our tool box
five pieces or maybe nine dollars of different packages three or you can get
from Aliexpress it is sold for around $8 us
Specifications, schematics and datasheet
It can be connected very USB we have 6 pins but if you're using is USB
two will be used for USB otherwise four will be available and we have eight kilobytes
flash memory which after bootloader it will be 6 kilobytes and we have I2C
and SPI communication pins and then we have three pins for pulse width
modulation PWM and four pins of analog and we have LED power LED and test LED and
here is a schematic diagram of the module we have to chip this is the 78 M
0 5 this is 5 volts voltage regulator that received from VIN and give 5
volts that 5 volts is connected to everywhere that you see 5V also which
means they are connected and also at this pin we also get 5 volts and
ground at the 2 pin terminal. and here with this 3 pins. then the 6 pin
that we have on the border of labeled
this 6 pins from pin 0 to 5 here on the schematic they have be labeled
it from 1 to 6 so this is pin zero and that is pin 5 of 1 power LED which is
connected to 5 volts with a resistor it will turn on as soon as the power is
established and the other LED will turn on when this pin 1 of the board is
HIGH when it is high this will be turned on so we can use for test purpose like
blink or any other application that if you need this this is already with a resistor
And for the USB we have three pins , the two pins of this chip which are
connected to pin 3 and 4 of the board and 3 amp and 4 or connected these two
resistor and Zener diodes will make the communication possible to be program for
a USB here are some of the specs that you might need for example active mode
at 1 megahertz 300 micro ampere and power download 0.1
micro amp. you can do power down or the pin outs and you can see the pin one is
used for reset if you want to reset it pin 1 and here is the pin and out with
comparing to actual device the 3 pins on this side this can be connected to 6
to 16 volts shown here and then this is a ground and this is a 5 volts out when
you connect a power here you will get 5 volts out and these are the pins. The pins
have been labeled from this side this has been zero and that is pin 5 or if
you count it as one that will it been 6 but inside Arduino this
is pin is zero so this always start with zero to five and here are the pins PB0
up to PB 5 here these are the digital pin and these to first pin or PWM
with the second from the last that is PWM and if you
are using analog for analog we have four pens the last 4 pins are analog. and
they're labeled as A0 analog 1 2 & 3 and the order pay attention here that
is A0, A1 is here so analog 0 and analog 1 and then we have 2 & 3 so 2
& 3 these are the order for I2C communication this is SDA and one pin in
between the second the third one is the SCL and if you are using SPI these are
the pin for SPI and we have also one interrupt here the pin 2 is enter up in
0 pin 1 pin to pin 2 is interrupt.
Arduino UNO Setup
first click on file->preferences and under the preferences we need to put
this text this is the path that it gets board information HTTP colon slash slash
[see the link in the description]
I will provide this in the description so you can just copy and paste it in
your URL for this board purpose and click OK. you are done click on Tools
boards-> and then board manager click on board manager and here wait until this
all is active and then type digi as soon as you type DG di GI you will see DG
a stamp AVR board now you see this is installed if I click on this you will
see the remove appear in your case because you have not installed that this
will be INSTALL click on that and it will take maybe depending on your
internet speed 30 seconds 1 or 2 minutes and it will be a installed. once that is
installed then go to tools->boards and then scroll down below the line
somewhere at the bottom you will see a divider and you will see DG stamp AVR
boards the title and/or the board in our case we will select digispark
default 16.5 megahertz click on that and as you can see this
have been now selected the board is selected and your IDE (Arduino) is ready to accept
digispark board
Arduino Running Code Demonstration
now to run a blink test program go to file->examples->basic->and open blank when
you open blank this LED_BUILTIN is for Arduino Uno and
other devices and change it to pin 1 make it 1 and make this also 1
and make this 1 after that click for the port
do not worry what port is selected and just click upload this is not connected
click upload it compiles it first and now he it says: you have 60 seconds to
upload at this stage insert it and you will see the power is up and you will
see here uploading and it you will see done
Upload done. and as you can see the blink has started if you're new to Arduino
the we know pinMode 1 this means set the pin 1 as output inside the setup
and then whatever could we have here this will be executed continuously
this line says digitalWrite make digital pin 1 HIGH and send the signal as
high and then keep it for one second HIGH so that is when LED is ON then we say
using digitalWrite make pin 1 LOW this makes it LOW or turns it OFF and
keeps it for one second after that the loop continues makes it ON and OFF and
every time one second as you can see this is one second ON one one second OFF
if you want to change it let's say make it blink faster let's make it 300
millisecond 300 milliseconds and now let's remove it compile the code
it say 60 second and then once this is done you will see now with the power that's
running it will be one second now started as you can see now with blinking
very quickly and here is an example that this really is being controlled by the
digispark. thank you for watching this was how to use a digiSpark development Arduino
compatible board please thumb up 👍 the video and also don't forget to subscribe I will have a
lot of other videos for this videos for development board
Subtitle typed and corrected on Mar 10, 2020 by Ahmad Shamshiri from Canada.
I did my part to help you learn. Now to help me, do not skip ads and Thumb UP 👍 the video and subscribe.
I appreciate it.
you