Playknowlogy 87288 User manual

2
ENGLISH
What is Arduino?
Arduino is an open-source electronics platform based on easy-to-use hardware and software. Arduino
boards can read inputs - light on a sensor, a nger on a button, or a Twitter message - and turn it into an
output - activating a motor, turning on an LED, publishing something online. You can tell your board what
to do by sending a set of instructions to the microcontroller on the board. To do so you use the Arduino
programming language (based on Wiring), and the Arduino Software (IDE), based on Processing.
What is UNO?
The Uno is on the ATmega328. It has 14 digital input/output pins (of which 6 can be used as PWM outputs),
6 analogue inputs, a 16 MHz ceramic resonator, a USB connection, a power jack, an ICSP header, and a
reset button.
It contains everything needed to support the microcontroller; simply connect it to a computer with a USB
cable or power it with a AC-to-DC adapter or battery to get started.
Software
Connect your UNO board with your computer. Connecting UNO and your PC by a blue USB cable, and if
connected correctly you will see the green power LED light up and another orange LED is blinking.
We need to gure out which channel COM is currently communicating between PC and UNO. Following the
path: Control panel | Hardware and Sound | Devices and Printers | Device Manager | Ports (COM & LPT) |
Arduino UNO (COMx).
See the picture on the next page. Find your Serial COM number and write it down as the COM port may vary
from time to time. In this case for demonstration purposes we're using COM 4.

3
ENGLISH
Firstly, let’s tell IDE where to nd our Arduino port and which board you are currently using: The
following instruction (pics below) shows the details:
Conguration of ports Conguration of the board

4
ENGLISH
Test this code to see that the connection is working. Following the path by File | Examples | 01. Basics |
Blink. A new code window will pop up, press the arrow symbol to upload. You will notice the orange LED is
blinking almost every second. This indicates that the code you just uploaded is working as intended.
Upload the Arduino 2 Wheel Drive code (shown above) to your UNO. This code makes it possible for the car
to drive around.
1.Arduino Sensor Shield
2.Playknowlogy Uno R3
3.L298N Motor Driver Board
4.Ultrasonic Sensor
5.Rubber Wheels (2pcs)
6.DC Motors (2pcs)
7.Ultrasonic holder
8.Metal Pivot Wheel
9.Acrylic board (2pcs)
10.USB Cable
11.SG90 Servo
12.Rocker switch (Optional)
13.6 x AA battery holder
14. 20 cm female-female jumper cables (20 pcs)

5
ENGLISH
4x M3 40 mm spacers
12x M3 10 mm spacers
4x M3 30 mm screws
24x M3 10 mm screws
28x M3 8 mm screws
10x M3 6 mm screws
14x nuts
Self-tapping screws

6
ENGLISH
Remove the protective cover from the acrylic board. Screw 4x of the 6 mm screws into 4x 10 mm spacers
onto the metal pivot wheel. Attach the pivot wheel to the acrylic board with 4x 8 mm screws to the acrylic
board.
Attach the L298N motor drive board to the chassi with 8x 8 mm screws and 4x 10 mm spacers as seen on
the picture above to the right. Gather 4x 10 mm screws and 4x 40 mm spacers. Attach them to the acrylic
board as seen on the picture below.

7
ENGLISH
Gather the following parts above: The two motors and their metal brackets, 4x 35 mm screws, 4x 8 mm
screws and 4 nuts. Place the brackets on either side of the motors and the screws as described.
Mount the motors to the arylic board,then mount the rubber wheel. Attach the wheels to the outer axles
when nished and pull the cables through the holes so they can reach the card.

8
ENGLISH
Separate the jumper cable so one half has 8 pins and the other 4. Connect one end of the jumper cables like
seen above into the motor drive board. Leave the other end of the cables as they are for the time being.
Place the battery pack and UNO according to the pictures and secure them with 6x 10 mm screws from the
other side. Pull the jumper cables through the hole of the top piece and connect them to the UNO board.

9
ENGLISH
Attach the top acrylic chassi together with the bottom chassi and screw them together with 4x 10 mm
screws. The end result should look like above.
Place the sensor shield on top of the UNO board and ensure the pins line up with each other.
Sensor installation
The ultrasonic sensor acts as the eyes for the robotic car. In the following steps we'll go through how to
install the the sensor and servo.
Above are the required components needed for these steps.

10
ENGLISH
Assemble the FPV holder and servo
Use two self-taping screws to tighten
the FPV pack
The following pieces need to be assembled. Put the servo horn t inside the holder. Use a side cutter or
another sharp tool to cut the edges. Use caution when handling sharp tools.
Fasten the servo horn to the holder with self tapping screws until you feel it is secure. The picture above
is an example of how it can look. The next step is attaching the ultrasonic sensor to the holder. It's
recommended to use cable ties, rubber bands or thread/plastic strings (none included). The result should
look like the picture below.

11
ENGLISH
Prepare a self-tapping screw to attach the servo pack to the sensor. Attach it as seen on the picture above
Gather 8x 8 mm screws and 4x 10 mm spacers to secure the servo pack to the bottom chassis. Attach it as
seen on the picture above.
Optional: You can install a power switch on the car to save energy. Attach the switch as seen on the picture
above and solder the power cables to the switch. Soldering tools and accessories are needed (not included).

12
ENGLISH
L289N
1b
1
1a
0
1
Batter
y
Pack
GND
VMS
The following diagram shows how to connect the power switch to the battery pack and the L298N
board. Caution: Do not have the UNO Board connected to your computer at the same time as the L298N
motor board as the module can drain a large amount of power from the USB port and burn it out. Always
disconnect the battery pack from the device before connecting it via USB.
Wire connection
The nal step is to connect all the modules together via the wires. The following diagram shows the
connection map. Take it slow and easy, you can also see the second connection table.
UNO board Sensor
Shield
L289N Battery
Box
Motor
left
Motor
Right
Servo Ultrasonic
sensor
GND GND
VMS VMS
+(Left) +(red)
-(Left) -(black)
+(Right) +(red)
-(Right) -(black)
V E NA
6 IN1
9 IN2
10 I N3
11 I N4
V ENB
G GND
V 5V+
5 S
V +
G -
V +
A1 Trig
A0 Echo
G -

13
ENGLISH
When all the wires are connected it's time to go. Activate the car and see if it needs any adjustments. After
seeing how the car acts according to the written code you can learn a lot by making small alterations in the
code.

14
NORSK
Hva er Arduino?
Arduino er en open-source-elektronikkplattform basert på brukervennlig program- og maskinvare. Arduino-
kretskort kan lese signaler fra eksempelvis en sensor, et ngeravtrykk på en knapp eller en tweet fra Twitter
og svare i form av for eksempel å aktivere en motor, tenne en LED-diode eller publisere noe online. Du
fortelle kretskortet hva det skal gjøre ved å sende instruksjoner til mikrokontrolleren som sitter på kretskor-
tet. Disse instruksjonene skrives i form av Arduinos programmeringsspråk (basert på Wiring) og Arduino-
programvaren (IDE), basert på Processing.
Hva er Uno?
Uno er basert på ATmega328. Den har 14 digitale inn-/utganger (hvorav 6 kan brukes som PWM-utganger),
6 analoge innganger, en 16 MHz keramisk resonator, en USB-tilkobling, et strømuttak, en ICSP-header og en
reset-knapp.
Programvare
Koble UNO-kortet ditt til datamaskinen. Bruk den blå USB-kabelen. Hvis tilkoblingen fungerer korrekt, vil du
se den grønne LED-dioden lyse opp og en annen oransje LED blinke.
Vi må ha kontroll på hvilken COM-port som brukes for å opprettholde kommunikasjonen mellom datamaski-
nen og UNO-kortet. Følg banen: Kontrollpanel > Enhetsbehandling, bla ned til Porter (COM og LPT) og nn
Arduino UNO (COMx).
Se eksempelbildet på neste side. Finn det serielle COM-nummeret og skriv det ned, siden COM-porten kan
variere av og til. I denne demonstrasjonen bruker vi COM 4.

15
NORSK
La oss først informere IDE om hvor den kan nne Arduino-porten vår, og hvilket kretskort du bruker: Følgende
instruksjoner (bilder nedenfor) viser detaljene.
Kongurering av porter Kongurering av kretskort

16
NORSK
Test følgende kode for å se om tilkoblingen fungerer. Gå inn på Fil > Eksempler > 01. Basics > Blink (File >
Examples > 01. Basics > Blink). Et nytt kodevindu vises. Trykk på pilknappen for å laste opp. Du vil se at den
oransje LED-dioden begynner å blinke hvert sekund. Det indikerer at koden du har lastet opp, fungerer som
den skal.
Last opp Arduino 2 Wheel-koden (vist ovenfor) til din UNO. Denne koden gjør det mulig for bilen å kjøre
omkring.
1.Arduino Sensor shield
2.Playknowlogy Uno R3
3.L298N Motor modul
4.Ultralyds-sensor
5.Gummihjul (2pcs)
6.DC Motorer (2pcs)
7.Sensor holder
8.Støttehjul i metall
9.Pleksiglass-chassis (2pcs)
10.USB-kabel
11.SG90 Servo
12.Strømbryter (Optional)
13.6 x AA batteriholder
14. 20 cm hona-hona koblingskabler (20 st)

17
NORSK
4x M3 40 mm-gjenger
12x M3 10 mm-gjenger
4x M3 30 mm-skruer
24x M3 10 mm-skruer
28x M3 8 mm-skruer
10x M3 6 mm-skruer
14x muttere
Selvskjærende/borende
skruer

18
NORSK
Fjern beskyttelsen fra pleksiglass-chassiset. Skru i 4x 6 mm skruer og 4x 10 mm gjenger på støttehjulet.
Fest hjulet i chassiset med 4x 8 mm-skruer.
Skru fast L298N-motormodulen i kabinettet med 8x 8 mm-skruer og 4x 10 mm-skruer slik som på bildet
ovenfor til høyre. Finn frem 4x 10 mm-skruer og 4x 40 mm-gjenger. Fest dem i kabinettet som vist på bildet
ovenfor.

19
NORSK
Finn frem delene ovenfor: De to motorene og deres holdere, 4x 35 mm-skruer, 4x 8 mm-skruer og 4x mut-
tere. Plasser holderne på hver sin side av motorene, og fest skruene som vist på bildet.
Fest holderne som vist ovenfor. Sikre dem med muttere for å klemme motorene på plass. Resultatet bør se
ut som på bildet ovenfor. Fest hjulet til de ytre akslene når du er klar, og dra kablene gjennom hullene slik at
de kan nå kortet.

20
NORSK
Separer koblingskablene slik at den ene halvdelen har 8 ledere, og den andre 4.
Koble den ene enden av koblingskablene som på bildet ovenfor i motormodulen. La den andre ligge løst
(ikke tilkoblet) foreløpig.
Plasser batteriholderen og UNO-en som på bildene, og fest dem med 6x 10 mm-skruer fra den andre siden.
Dra koblingskablene gjennom hullet på chassiset, og koble dem til UNO-kortet.
Table of contents
Languages: