Professional Documents
Culture Documents
After all
details are
filled
Clik to
(without
start any
mistake)
1st Time Login
Get the
activation
Insert username Open your Email to code from
and password get account your Email
to login activation code
Add Command
Hide / Show All
Commands
Home
Page
Command
Groups
Add Command
Page
Magnetcode Workshop
Module 1: Magnetcode Startup
Webpage:
www.magnetcode.com
Your Smartphone + FREE Magnetcode ==>
Create Apps
Magnetcode
App Projects
Your Smartphone + FREE Magnetcode ==>
Create Apps
Carrot Accessories
+ +
Magnetcode
Automation & Robotics
Projects
Magnetcode Accessories
Magnetcode Projects:
www.youtube.com
(search using 'Magnetcode' keyword.)
Magnetcode For Android 4.1 and above
APA ITU SIMULASI ?
Litar Simulasi Magnetcode
Simulation Without Simulation With
Programming Programming
Click 'Text' to edit Set color, size and Done? Press 'Run
it content Simulation'
Project 2: On off 1 LED
LCD_Update
?
LCD_Text_Size =80
LCD_Align = Middle Menu
Timer = 2 sec
Clear all
LCD_Show_Text = Welcome
LCD_Update
commands in the
Timer = 2 sec 'Home Page'
Goto = 1
Home Page
We will do 3 projects
Timer Timer
2 sec 2 sec
Timer 2 sec
Project 1 Output
Press and hold any
command to add it.
You will see
'Command added' tag.
Command added
Return to
'Home'
page.
Change
background
color to red? Red
2. Timer = 1 sec
1. Background_Color = Red
2. Timer = 1 sec
Timer = 2 sec?
2
Press and
hold
How to do this?
Timer Timer
2 sec 2 sec
1. Background_Color = 1. Background_Color = Red
Red
2. Timer = 2 sec 2. Timer = 2 sec
2. Timer = 2 sec
3. Background_Color = Green
Press 'Run' to
4. Timer = 2 sec
test.
5. Background_Color = Yellow But stop at yellow
6. Timer = 2 sec color
background?
No Repeat?
1. Background_Color = Red
2. Timer = 2 sec
3. Background_Color = Green
4. Timer = 2 sec
5. Background_Color = Yellow
6. Timer = 2 sec
7. Goto = 1
Always at
the bottom
3. Background_Color = Green
4. Timer = 2 sec
5. Background_Color = Yellow
6. Timer = 2 sec
7. Goto = 1
Brain (Microcontroller):
5VDC, Greenbean, 20MHz
DOUT3
DOUT4
DOUT5
DOUT6
LED
(Light Emitting Diode)
(operating volt: 1.8V to 3.3V)
Red, Orange
(Amber), Green, Blue,
White
Red Black
DOUT1 GND Big LED
DOUT2 GND (5mm Diameter)
DOUT3 GND
DOUT4 GND Small LED
DOUT5 GND (3mm Diameter)
DOUT6 GND
Power up Carrot Project
Board
Power on / off
indicator
Power on / off
switch
5V
GND
Project 4: LED Berkelip Tanpa DIN
Red LED On Wait for 2 sec
Dout1
GND
Blink red LED at Dout1
1. Dout1 = On
2. Timer = 2 sec
3. Dout1 = Off
4. Timer = 2 sec
5. Goto = 1
3. Dout1 = Off
4. Timer = 2 sec
5. Goto = 1
Connect your program
to the Carrot project
board
Bluetooth pairing PIN: 1234
121600051
Done? Try to save the
project
Where is the file?
Internal Storage -> 'Mydata' folder
Litar Sebenar
Litar Simulasi
Project 5: LED Berkelip
Click
'Run Simulation'
1. Read_Controller
Simulator
2. If C_Din1 = 1
3. Dout1 = On
4. End If
5. If C_Din1 = 0
6. Dout1 = Off
7. End If
8. Goto = 1
Program
Circuit
Project 5: Automatic Light
1. Read_Controller
Simulator
2. If C_Ain1 > 200
3. Dout1 = On
4. End If
Set
5. If C_Ain1 < 200 brightness
6. Dout1 = Off
7. End If Controller I/O
Read_Controller
Dout1=On
8. Goto = 1
Decision
Program If C_Ain1 = 0
End If Circuit
Project 6: Traffic Light
Litar sebenar
Litar Simulasi
Project 6: Wiring
DOUT1 DOUT3
DOUT2
GND
Project 6.1: Traffic Light
Done? Click
'Run Simulation'
1. Dout1 = On
2. Dout2 = On Simulator
3. Dout3 = On
4. Timer = 1 sec
5. Dout1 = Off
6. Dout2 = Off
7. Dout3 = Off
8. Timer = 1 sec
9. Goto = 1
Red LED On
4. Dout2 = On
5. Timer = 2 sec
6. Dout2 = Off
7. Dout3 = On
8. Timer = 2 sec
9. Dout3 = Off
10.Goto = 1
Project 6.3: Upgrade edit
1. Dout1 = On
2. Background_Color=Red RUN
3.Timer = 2 sec
4.Dout1 = Off
5.Dout2 = On
6. Background_Color=Green
7.Timer = 2 sec
8.Dout2 = Off
9.Dout3 = On
10.Background_Color=Yellow
11.Timer = 2 sec
12.Dout3 = Off
13.Goto = 1
Project 6.4: Upgrade edit
1. Dout1 = On
2. Background_Color=Red RUN
3.Timer = 2 sec
4.Dout1 = Off
5.Dout2 = On
6. Background_Color=Green
7.Timer = 2 sec
8.Dout2 = Off
9.Dout3 = On
10.Background_Color=Yellow
11.Timer = 2 sec
12.Dout3 = Off
13.Text_Speech _Enable =On
14.Text_Speech_Text = Terima Kasih
15.Goto = 1
Projek 7 : LED -> Heavy Duty Load
Relay Module,
Max 250Vac, 10A
-
+
AC / DC Load