Search Results
285 results found with an empty search
- RGB Color Sensor Demo 1
This simple program prints the colors from the RGB color sensor connected to port D of the JackBord. < Back RGB Color Sensor Demo 1 This simple program prints the colors from the RGB color sensor connected to port D of the JackBord. Program --- RGB Color Sensor Demo 1 This simple program prints the colors from the RGB color sensor connected to port D of the JackBord. --- prog_vars = d/count 0 d/red_line 0 d/green_line 0 d/blue_line 0 d/clear_line 0 prog_vars. prog_start = pclear print "RGB Color Sensor Demo 1: Start" -- Enable the I2c system i2con prog_start. prog_loop = -- main program loop -- print the readings from the RGB Color sensor. print "C /cs_clear R /cs_red G /cs_green B /cs_blue" -- Set the USER 1 LED to the color. l1 /cs_red /cs_green /cs_blue -- Wait 1sec d1000 -- RUn 100 times any /count >= 100 -> exitprog inc /count prog_loop. prog_stop = print "Bye" prog_stop.
- Store Light Readings in an Array
Get voltage readings from a light dependent resistor (LDR) light sensor and store in an array called ldr. Next we plot the readings stored in the array. The store_data task collects the readings and stores them the plot_data task plots them. The LDR is attached to +3v and a 100K resistor is below it. < Back Store Light Readings in an Array Get voltage readings from a light dependent resistor (LDR) light sensor and store in an array called ldr. Next we plot the readings stored in the array. The store_data task collects the readings and stores them the plot_data task plots them. The LDR is attached to +3v and a 100K resistor is below it. Program --- Get voltage readings from a light dependent resistor (LDR) light sensor and store in an array called ldr. Next we plot the readings stored in the array. The store_data task collects the readings and stores them the plot_data task plots them. --- prog_vars = d/ldr[1000] 0 prog_vars. prog_start = print "Plot ldr data" -- Setup the LDR sensor on Port B1 -- Range is 0 to 100 gvr b1 0 100 -- Setup USER led pwm d1 0 prog_start. prog_loop = store_data 50 plot_data 50 exitnow prog_loop. store_data /no_of_points 0 = -- Get light readings from the ldr and store -- in the /ldr array print "Get /no_of_points of light readings" d/point_no 0 -- Get the ldr readings and store repeat /no_of_points -> -- Store the new value. /ldr[/point_no] /b1 print "/point_no /b1" -- Plot the sine value we just stored -- tbar . /b1 0 25 "/point_no /b1" -- Set USER brightness based on plot value pwm d1 /b1 inc /point_no repeat. store_data. plot_data /plot_points 0 = -- Plot the ldr stored in the /ldr array. print "Plot /plot_points Stored in LDR data Array" d/plot_no 0 pwm d1 0 repeat /plot_points -> -- Plot the ldr data tbar . /ldr[/plot_no] 0 25 "B /plot_no /ldr[/plot_no]" -- print "B /plot_no /ldr[/plot_no]" -- Set USER brightness based on plot value pwm d1 /ldr[/plot_no] inc /plot_no repeat. plot_data. prog_stop = print "Good bye" prog_stop.
- Actuator Commands
Command Guide < Back Actuator Commands calstr - Run the steering limit switch calibration routine Purpose This routine is for robots using a linear actuator steering system with left, center and right steering limit switches fitted. The routine establishes the range of the steering actuator and the location of the centre limit switch in terms of pulses applied to the linear actuator. It also determines the travel length of the actuator in terms of the number of pulses required to move it through it’s full range. Syntax calstr Notes This is for robots with a linear actuator steering system. Once the calibration has been successfully completed the steering system will automatically use the new values so that the various built in steering functions will work as expected. mvsa - Move linear steering actuator Purpose Moves the steering actuator into a new position. Syntax mvsa pos Arguments pos The new position measured in pulses required to reach that position. Examples mvsa 0 mvsa 100 Notes The required pulses need to be determined by running the calstr command first. vdl - Drive System Limit Switch Status Purpose Display the current Drive System Limit Switch Status Syntax vdl Example > vdl < LAct Steering: Limits Regs L0C0R0 HW State Cal L 0 C 0 R 0 C 0 R 0 POS 0
- sled Example 8 LED Program
This program works with a strip of 8 smart RGB leds connected to the SLED pin on port E (pin E1 in some models.) It randomly chnages the color of each LED. < Back sled Example 8 LED Program This program works with a strip of 8 smart RGB leds connected to the SLED pin on port E (pin E1 in some models.) It randomly chnages the color of each LED. Program --- sled Example Light Program This program works with a strip of 8 smart RGB leds connected to the SLED pin on port E (pin E1 in some models.) It randomly chnages the color of each LED. --- prog_vars = d/count 0 d/led_no 1 d/color 0 d/no_of_leds 8 prog_vars. prog_start = print "Program Start" -- Set the number of LEDS sledn /no_of_leds prog_start. prog_loop = -- main program loop print "Count /count" inc /count any /count >= 1000 -> exitprog -- Set a random color rand 0 15 -> /color -- Set the led sled /led_no /color inc /led_no -- Return to first led. any /led_no > 8 -> /led_no 1 prog_loop. prog_stop = print "Bye" prog_stop.
- Sensors - Sound Detection
Use the simple sound detector module to determine if there is sound above a pre-set threshold. < Back Sound Detection Use the simple sound detector module to determine if there is sound above a pre-set threshold. In this exercise we use a simple on/off sound module to detect sounds. Use the simple sound detector module to determine if there is sound above a pre-set threshold. The threshold is set by using a small Philips screw driver to adjust the square blue variable resistor on the lower right side of the module. The output on the modules OUT pin is normally 5V when there is no sound. When a sound is detected it will drop to 0V and this is how the JackBord can detect sounds. Connect the sound sensor to Port A1, the Port A 5V supply and grounds of the JackBord as shown in the table below. Note the names of the pins on the detector module and the corresponding pins they connect to on the JackBord. When connected correctly it should look like this: Testing: With the module attached as above and the JackBord turned on enter the following command: btp a1 tg d1 When run this command treats the sound module as a button input. Each time the module detects a sound its output goes low, when there is no sound it goes high. Also the red led on the module will light up when it detects a sound. If the module does not seem to detect any sound try adjusting the blue variable resistor a little and try again. Or if it seems to be over sensitive to sound try adjusting the sensitivity down. Table of OUT values for the sound sensor module. Previous Next
- Sensors - MQ4 Methane Gas
The MQ4 module allows the JackBord to detect methane gas at concentrations from 300 ppm to 10,000 ppm. The reading output from the sensor is an analog voltage from 0.1V to 4.5V. There is a digital output as well, pin DO, which is normally high and goes low when gas is detected. < Back MQ4 Methane Gas The MQ4 module allows the JackBord to detect methane gas at concentrations from 300 ppm to 10,000 ppm. The reading output from the sensor is an analog voltage from 0.1V to 4.5V. There is a digital output as well, pin DO, which is normally high and goes low when gas is detected. The MQ4 module allows the JackBord to detect methane gas at concentrations from 300 ppm to 10,000 ppm. The reading output from the sensor is an analog voltage from 0.1V to 4.5V. There is a digital output as well, pin DO, which is normally high and goes low when gas is detected. Quick Commands To setup the sensor and get some raw readings from it run the command below: (this assumes the sensor is on port A1) gvr a1 0 100 This gets the voltage reading from the sensor and scales it between 0 and 100, with 100 being the maximum gas reading. Some Useful Resources Understanding a Gas Sensor MQ4 Sensor Datasheet mq4_sensor .pdf Download PDF • 161KB NOTES AND CAUTIONS The sensor gets hot during use so make sure it has plenty of air flow Do not get the sensor wet The sensor is powered from 5V The JackBord is NOT waterproof, so don't allow it to become wet The sensor needs some time to warm up, the manual states about 24hours but you can start using it after about 10 minutes. Parts of the Sensor Power LED - Turns on when the power is applied. Trigger LED - Turns on when gas is detected. The selection threshold is set via the variable resistor. Variable Resistor - Used to adjust the sensitivity of the digital output. Gas Sensor - This is the sensor that detects the gas. How it Works The sensor composed by micro AL2O3 ceramic tube, Tin Dioxide (SnO2) sensitive layer, measuring electrode and heater are fixed into a crust made by plastic and stainless steel net. An internal heater provides the heat required for the sensor to work. The sensor module has two outputs: DO which is a digital logic output and AO which is the analog output. Input and Output Pins The pins of the sensor are listed below: Connecting the Sensor to the JackBord 1. Bolt the sensor to the side of the JackBord on Port A as shown below 2. Connect the 5V power, ground, and analogue jumpers to Port A as shown below in the diagram Connections to the JackBord. The white jumper goes from the sensor's analogue output into the JackBord's port A1 pin. Using the Sensor Once the sensor is connected to the JackBord, we can get the readings from it by using port pin a1 as an analogue input. To set a1 as an analogue input type this command at the command prompt: gvr a1 1 100 This command takes the analogue output from the sensor and scales it between 0 and 100. Previous Next
- Raspberry Pi Shake Test Program 2 Aug 2021
This is a test program. It plots the data on two charts. < Back Raspberry Pi Shake Test Program 2 Aug 2021 This is a test program. It plots the data on two charts. Program --- Raspberry Pi Shake Test Program --- prog_vars = d/count 0 d/xpos 0 d/pro_EHZ 0.0 d/prev_EHZ 0.0 d/pro_EHZ_max 0.0 d/prev_EHZ_max 0.0 d/range_EHZ 0.0 prog_vars. prog_start = pclear d1000 -- Display the Title. ptl 100 -15 ^ts=24^tc=blue^ "Raspberry Shake Alert Program" -- Add Quit Button pb 25 50 ^n=Quit^p=exitprog^ prog_start. prog_loop = -- main program loop inc /count -- Stop after 10,000 readings any /count >= 10000 -> exitprog any /count >= 3 -> -- grsk AM.R5C47 -- TKMP grsk AM.R7DD4 -- Pcol d500 -- d-trend the reading sub /rs_EHZ /prev_EHZ -> /pro_EHZ -- Invert the negative values abs /pro_EHZ -> /pro_EHZ sub /rs_EHZ_max /prev_EHZ_max -> /pro_EHZ_max abs /pro_EHZ_max -> /pro_EHZ_max sub /rs_EHZ_max /rs_EHZ_min -> /range_EHZ abs /range_EHZ -> /range_EHZ d/title "My Graph Title" -- Plot the pro_EHZ geophone value plot 10 100 ^id=rs^n=/title^t1n=EHZ^t2n=Max^xdp=100^xp=/xpos^v1=/pro_EHZ^v2=/pro_EHZ_max^ plot 10 400 ^id=ra^t1n=EHZ^t2n=Max^xdp=100^xp=/xpos^v1=/rs_EHZ_max^v2=/range_EHZ^ -- Display the plot value ptl 30 20 ^ts=16^ "X /xpos > EHZ /rs_EHZ pro EHZ /pro_EHZ max /pro_EHZ_max" -- Check for a Quake any /pro_EHZ >= 500 -> -- YES we have a quake ptl 100 40 ^ts=25^tc=red^ "Tapapa Hopukina Kia mau" else -- NO no quake ptl 100 40 ^ts=25^tc=Lime^ "OK" enda. -- Next Xpos inc /xpos enda. -- Update the previous value. /prev_EHZ /rs_EHZ /prev_EHZ_max /rs_EHZ_max prog_loop. jack = tg l1 jack. prog_stop = ptl 525 5 ^ts=75^ "Bye" prog_stop.
- Logic Input Detector
This program turns Port A pins a1 and a2 into logic inputs with pullup resistors so that they are naturally at logic level 1. Shorting them to ground will make them 0. We use the any statement to detect when they are low. < Back Logic Input Detector This program turns Port A pins a1 and a2 into logic inputs with pullup resistors so that they are naturally at logic level 1. Shorting them to ground will make them 0. We use the any statement to detect when they are low. Program --- Logic Input Detector This program turns port A pins a1 and a2 into logic inputs with pullup resistors so that they are naturally at logic level 1. Shorting them to ground will make them logic level 0. We use the any statement to detect when they are low. --- prog_vars = d/count 5 prog_vars. prog_start = print "Setup Program" /d1 0 -- Set Port A1 & A2 as inputs with pullups spm a1 1 spm a2 1 prog_start. prog_loop = -- Check if pin A1 is Low, turn User Led off any /a1 = 0 -> /d1 0 -- Check if pin A1 is High, turn User Led on any /a1 = 1 -> /d1 1 -- Check if pin A2 is Low, turn C1 off any /a2 = 0 -> c1 0 enda. -- Check if pin A2 is High, Turn C1 on any /a2 = 1 -> c1 1 enda. prog_loop. prog_stop = print "Bye" prog_stop.
- Romeos Infrared Remote Control Driving Program
This program allows a JackBord to with drive motors to be driven using a normal TV remote control. < Back Romeos Infrared Remote Control Driving Program This program allows a JackBord to with drive motors to be driven using a normal TV remote control. Program --- Romeos Infrared Remote Control Driving Program 22 July 2021 This program allows a JackBord with drive motors to be driven using a normal TV remote control. --- prog_vars = d/count 0 d/color 0 d/pos 50 d/neg -50 prog_vars. prog_start = pclear stop -- Claw up and open svp c1 0 svp c2 180 print "Program Start neg /neg pos /pos" prog_start. prog_loop = -- pclear -- "/s_ird neg /neg pos /pos" -- Motion Control any /s_ird = 505 -> sbms /pos /pos any /s_ird = 481 -> sbms /pos /neg any /s_ird = 515 -> sbms /neg /neg any /s_ird = 527 -> sbms /neg /pos any /s_ird = 542 -> sbms 0 0 -- Claw control any /s_ird = 513 -> svp c1 0 any /s_ird = 541 -> svp c1 50 any /s_ird = 511 -> svp c2 0 any /s_ird = 418 -> svp c2 180 -- Speed Control any /s_ird = 517 -> /pos 40|/neg -40 any /s_ird = 519 -> /pos 60|/neg -60 inc /count any /count >= 5 -> rand 1 15 -> /color l1 /color rand 1 15 -> /color l2 /color rand 1 15 -> /color l3 /color /count 0 enda. prog_loop. prog_stop = bms 0 print "Bye" prog_stop.
- Robot Arm
An example of a robot arm. < Back Robot Arm An example of a robot arm. Program --- Robot Arm Program --- prog_vars = d/count 0 d/color 0 d/ledno 1 prog_vars. prog_start = print "Program Start" sledn 7 -- Setup arm buttons btp u1 svp a1 0 btp u2 svp a1 50 btp u3 svp a2 0 btp u4 svp a2 80 d/posa1 0 d/posa2 0 repeat 12 -> svp a1 /posa1 svp a2 /posa2 d250 inc /posa1 5 inc /posa2 5 "pos /posa1" repeat. repeat 12 -> svp a1 /posa1 svp a2 /posa2 d250 dec /posa1 5 dec /posa2 5 repeat. prog_start. prog_loop = sled /ledno /color inc /ledno inc /color any /ledno >= 7 -> /ledno 1 any /color >= 15 -> /color 0 prog_loop. prog_stop = print "Bye" prog_stop.
- Any and All Statement Text Test
This program tests the any and all statements with text values. The test values are all text. < Back Any and All Statement Text Test This program tests the any and all statements with text values. The test values are all text. Program --- all Statement Test Program no 1 This is an example program showing how to use all statements. --- prog_vars = d/pin1 0 d/pin2 1 d/float1 12.5 d/float2 3.141 d/int1 10 d/int2 0 d/pin_no 0 d/text1 "Jack" d/text2 "Jill" prog_vars. prog_start = print " -------------- " print "all statement test program" prog_start. prog_loop = -- Test 1 Should be TRUE ie "a" = "a" all "a" = "a" -> print "Test 1 TRUE CORRECT" else print "Test 1 FALSE WRONG" exitprog enda. -- Test 2 Should be FALSE ie "a" != "b" all "a" = "b" -> print "Test 2 TRUE WRONG" else print "Test 2 FALSE CORRECT" exitprog enda. -- Test 3 Should be TRUE ie /text1 is != /text2 all /text1 != /text2 -> print "Test 3 TRUE CORRECT" else print "Test 3 FALSE WRONG" exitprog enda. -- Test 4 Should be TRUE ie /text1 is "JacK" all /text1 = "Jack" -> print "Test 4 TRUE CORRECT" else print "Test 4 FALSE WRONG" exitprog enda. -- Test Should be TRUE ie "Jack" is = "JacK" all "Jack" = "Jack" -> print "Test 5 TRUE CORRECT" else print "Test 5 FALSE WRONG" exitprog enda. prog_loop. prog_stop = print "Bye" prog_stop.
- Electronics
Electronics This page will help you get started with electronics, specifically with the JackBord TOP. Below you will find the Using the TOP Guide , which will help you grasp the basics of electronics and how to use your TOP. You will also find a variety of videos to help you on your journey. Using the TOP Guide PDF Videos Learn how to use the TOP with our helpful videos! These introduce the basics of electronics and the JackBord TOP. Electronics Play Video Play Video 06:52 Using the TOP Part 1 The JackBord TOP helps you explore the JackBord and learn basic electronics. This is the first in a series of 4 videos about the JackBord TOP and basic electronics. In this video we cover: * What the JackBord TOP is * The parts of the TOP In part 2 we learn how to attach the TOP to the JackBord, connect the power supply, how jumper wires work and the basics of circuits and circuit diagrams. In part 3 we learn more about the JackBord, the TOP and basic electronics by doing practical tasks. Finally part 4 has more fun tasks and introduces some more electronics concepts like analog inputs. These videos are companions to the JackBord Journeys book "Using the TOP". You can find the other videos and the JackBord Journeys book by visiting www.JackBord.org and clicking on the Start here link on the top left of the homepage. 0:00 Using the TOP Part 1 00:42 Parts of the TOP 01:05 Power Supply Pins 01:26 Electronic Components 03:17 User Pins 04:00 Transistors 04:23 Terminal Block 04:48 Light Dependent Resistor LDR 05:03 Smart RGB LED 05:20 Light Emitting Diodes (LEDs) 05:44 RGB LED 06:00 Power Supply Pins for the JackBord Play Video Play Video 06:51 Using the TOP Part 2 The JackBord TOP helps you explore the JackBord and learn basic electronics. This is the second in a series of 4 videos about the JackBord TOP and basic electronics. In this video we cover: * Attaching the TOP to the JackBord * How jumper wires work * Introduce basic circuit concepts and circuit diagrams * Build a simple LED circuit In part 3 we learn more about the JackBord, the TOP and basic electronics by doing practical tasks. Finally part 4 has more fun tasks and introduces some more electronics concepts like analog inputs. These videos are companions to the JackBord Journeys book "Using the TOP". You can find the other videos and the JackBord Journeys book by visiting www.JackBord.org and clicking on the Start here link on the top left of the homepage. 0:00 Introduction 0:15 Attaching the TOP to the JackBord 0:50 Using Jumper Wires 1:30 Connecting the JackBord's Power Supply to the TOP 2:00 Connecting the Ground Wire 2:07 Connecting the 3V Wire 2:15 Connecting the 5V Wire 3:00 Jumper Wires and Circuit Diagrams 3:35 Some Basic Circuit Symbols 4:06 Using the Pin Numbers on the TOP 4:20 A Simple LED (Light Emitting Diode) Circuit Example 5:45 Summary Play Video Play Video 14:29 Using the TOP Part 3 The JackBord TOP helps you explore the JackBord and learn basic electronics. This is the third in a series of 4 videos about the JackBord TOP and basic electronics. In this video we complete some fun tasks like: * Turning an external LED on and off with the JackBord * Using pulse width modulation to control the brightness of an LED * Making a dynamic rainbow * Using buttons * Making a switch from scratch Finally part 4 has more fun tasks and introduces more electronics concepts like analog inputs. These videos are companions to the JackBord Journeys book "Using the TOP". You can find the other videos and the JackBord Journeys book by visiting www.JackBord.org and clicking on the Start here link on the top left of the homepage. 0:00 Using the TOP Part 3 00:20 Things You Will Need 00:50 Task 1: Control an External LED (Light Emitting Diode) 02:40 Task 2: Controlling the Brightness of the LED 03:35 Task 3: LED Rainbow 05:08 Task 4: Flashing Rainbow 05:22 Daisy-chaining Commands 07:20 Task 5: Button Press 08:51 Task 6: Button Release 10:12 Task 7: Make a Switch 10:59 Terminal Blocks Play Video Play Video 08:16 Using the Smart RGB LED on the JackBord TOP In this video we learn how to use the smart RGB LED on the JackBord TOP. Because the smart RGB LED has its own little computer built in you can do all sorts of things with it. For more information visit www.JackBord.org This videos tmt code is: tmt3NneN 0:00 Using the Smart RGB LED on the JackBord TOP 00:31 Some theory 01:09 Smart RGB LED 01:46 Connecting the smart RGB LED to the JackBord 02:27 Check your connection 02:49 Using the smart RGB LED 03:46 Turning the RGB LED off 03:56 Setting individual colors 05:20 Changing the LED brightness 06:01 Color table 06:08 How it works 06:50 Example programs 06:57 Demo program no 1 07:11 Demo program no 2 07:30 Summary Play Video Play Video 07:21 Using the RGB LED on the JackBord TOP In this video we learn how to use the RGB LED on the JackBord TOP. To visit the JackBord TOPs home page goto www.JackBord.org and type tmt4CKk at the search prompt and press Enter. For more information visit www.JackBord.org 0:00 Using the RGB LED on the JackBord TOP 00:33 Some Theory 01:14 RGB LED 02:10 Connecting the RGB LED to Port C on the JackBord 03:55 Check your Connection 03:56 Using the RGB LED 05:25 How RGB LED works 06:28 Summary
- Combining any and all Statements Together Example
In this example program we combine any and all statements to make more complex decisions possible in Octagon. < Back Combining any and all Statements Together Example In this example program we combine any and all statements to make more complex decisions possible in Octagon. Program --- Combining any and all statements example program --- prog_vars = d/pin1 0 d/pin2 1 d/pin_no 0 prog_vars. prog_start = print " -------------- " print "any and all combination example program" prog_start. prog_loop = -- Test 1 Should be FALSE ie /pin_no < 1 /pin1 0 /pin2 1 /pin_no 0 all /pin_no >= 1 /pin_no <= 5 any /pin1 = 0 /pin2 = 1 -> print "Test 1 TRUE WRONG" else print "Test 1 FALSE CORRECT" exitprog enda. -- Test 2 Should be FALSE ie /pin_no > 5 /pin1 0 /pin2 1 /pin_no 10 all /pin_no >= 1 /pin_no <= 5 any /pin1 = 0 /pin2 = 1 -> print "Test 2 TRUE WRONG" else print "Test 2 FALSE CORRECT" exitprog enda. -- Test 3 Should be FALSE ie all anys are false /pin1 1 /pin2 0 /pin_no 3 all /pin_no >= 1 /pin_no <= 5 any /pin1 = 0 /pin2 = 1 -> print "Test 3 TRUE WRONG" else print "Test 3 FALSE CORRECT" exitprog enda. -- Test 4 Should be TRUE ie all is ok and 1 any is true /pin1 0 /pin2 0 /pin_no 3 all /pin_no >= 1 /pin_no <= 5 any /pin1 = 0 /pin2 = 1 -> print "Test 4 TRUE CORRECT" else print "Test 3 FALSE WRONG" exitprog enda. -- Test 5 Should be TRUE ie all is ok and 1 any is true /pin1 1 /pin2 1 /pin_no 3 all /pin_no >= 1 /pin_no <= 5 any /pin1 = 0 /pin2 = 1 -> print "Test 5 TRUE CORRECT" else print "Test 5 FALSE WRONG" exitprog enda. prog_loop. prog_stop = print "Bye" prog_stop.
- Learn
Getting Started The recommended pathway for the JackBord activities is to complete the guides level by level, in the order of Electronics, Programming, Sensors, Control, then Robotics. For example, you would do all level 1 subjects before moving on to any of the level 2 subjects. However, this is not an enforced rule - feel free to jump ahead if the content is too easy, you want to learn something specific for a project, or are looking for a referenced activity. User Guides Here are the instructional guides explaining how to use your JackBord and its components. View More Student Guides For Learners: These guides will help carry you through the different activities and concepts you learn along the way. Starting from level 1, a complete beginner, to level 8, university level. Teacher Guides For Teachers: These guides will help you teach the content in the classroom. They provide a little bit more information and context which can help you, and your students, understand the how, what, and why. View More Projects These are standalone projects submitted by our team and users. You will find tons of cool projects to work on and impress friends and family! View More Subject Codes Each subject has a code that is 4 digits. The first 2 digits are the subject code, and the fourth digit is the level. For example - 1001 is Electronics level 1, and 1002 is Electronics level 2. For some subjects, the 3rd number is a sub-subject. For example - 2001 is coding level 1, and 2011 is programming level 1.
- Octagon Long Argument Test
This is a test program for the task arguments in Octagon. < Back Octagon Long Argument Test This is a test program for the task arguments in Octagon. Program --- Hi Octagon --- prog_vars = d/count 1 prog_vars. prog_start = print "My 1st Program" pticks 5 /count 0 rdbg 8 cdbg 5 prog_start. prog_loop = print "Hi from Octagon. /count" inc /count repeat 5 -> print "REP1 count /count" tg a1|tg a5|d1 1 repeat 5 -> print "REP2 count /count"|tg d1|tg a1|tg a5|inc /count -- repeat 5 -> tg d1|tg a1|tg a5 -- repeat 5 -> tg a1 repeat 5 -> tg a1|print "1>Time to quit count /count end" repeat 5 -> print "2>Time to quit count "|tg a5 tg d1 -- Works repeat 5 -> tg a5|inc /count|print "3>Time to quit count /count end" -- Works repeat 5 -> print "4>Time to quit count /count end" tg a5 repeat. -- Arg too long repeat 5 -> tg a5|inc /count|print "3>VERY LONG ARG Time to quit count /count"|tg d2 -- Arg too long at end. repeat 5 -> tg a5|tg d2|inc /count|print "3>VERY LONG ARG Time to quit count /count AT END" -- DOES NOT WORK repeat 5 -> print "5>Time /count end"|tg a1 repeat. -- Does NOT WORK repeat 5 -> print "6>Time to quit count /count end"|tg a5 tg d2 repeat 4 -> print "this is repeat 4" tg a1 repeat. -- any /count >= 15 -> print "Time to quit count /count end"|exitprog any /count >= 15 -> print "7>Time to quit count /count end"|tg a5|exitprog prog_loop. prog_stop = print "Prog STOPPED!" prog_stop.
- SPI Commands
Command Guide < Back SPI Commands spion - Enable the SPI system Purpose Turn on the SPI system. Syntax spion spioff - Disable the SPI system Purpose Turn off the SPI system. Syntax spioff spipins - Set the port pins to use for the SPI system Purpose Allows the pins to be used for the SPI system to be set. Syntax spipins SCK MISO MOSI CS Arguments SCK Port pin to be used for the SCK pin. MISO Port pin to be used for the MISO pin. MOSI Port pin to be used for the MOSI pin. CS Port pin to be used for the CS pin. Examples spipins c2 c3 c4 c5 Setup port C pins 2 to 5 to be the SPI port pins. Notes The port B and E pins cannot be used for SPI. spot - Set the Resistance value of the MCP4161 Digital Potentiometer Purpose Set the Resistance value of the MCP4161 Digital Potentiometer which is connected to the SPI port. Syntax spot value Arguments value Digital pot value between 0 and 255. Examples spot 50 Notes Connection to JackBord SPI Port on Port C. vspi - Display the status of the SPI system Purpose Displays the status and basic settings of the SPI port system. Syntax vspi
- Team
Aaron Jordan, Managing Director Aaron has stepped up to lead JackBord in its next stage of development. He has a deep understanding of technology trends and a wide network of contacts Aaron is a senior manager in the public sector leading transformational change in Land Information NZ. Aaron played a key role in the redesign of the students JackBord website and is currently leading the redesign of some key elements of the JackBord solution. In his spare time he and son are enthusiastic users of the JackBord system aaron@jackbord.works Jack Penman, Founder and Chief Designer With a passion for creating new things and pushing the boundaries in everything he does, Jack enjoys working with the amazing team at JackBord and the students he is lucky enough to teach. He has learnt to understand and direct his gifts of ADHD and Dyslexia into experimenting, creating and teaching to solve the problems and challenges of today and tomorrow. Apart from constantly coming up with new ideas and improvements, Jack manages hardware design, software engineering, documentation, education. When not creating wonderful new things, Jack loves to teach electronics and robotics (especially via JackBord) to kids of all ages, play the cello and let off any surplus energy through karate. He is committed to supporting his two boys into a world of opportunity. Jack recently attended TEDx Kapiti as a speaker, click here to watch his talk! jack@jackbord.works Meet the Team As a start up we are a relatively small team who have worked incredibly hard since 2020 (Jack since 2000) to bring Jack's vision to young learners, parents and educators. We are all committed to making a difference for educators, and young learners of all ages and abilities by encouraging them into the world of STEM through the authentic learning experiences of JackBord. We are about to reach out for talented software engineers, educators, administrators and marketing personnel who share our vision and passion. If you are interested contact Aaron Geoff Fellows, Quality Control, Administration With a background in ICT and Consulting, Geoff has provided his array of skills, experiences and networks helping get JackBord off the ground. He keeps active testing product, systems and user experience. A man of many interests, Geoff enjoys sailing, motorcycling, helping others and spending time with his grandchildren. geoff@jackbord.works Chris Manning, Business Development Chris has a background in sales and business development for multiple kiwi startups. He loves what JackBord can do for young learners of all ages and abilities, and is eager to help them become tomorrows innovators, scientists and engineers. In his spare time, he enjoys rock climbing, gardening and playing in his band, Flaxxies.. chris@jackbord.works
- RC Servos
RC Servos What is an RC Servo? An RC Servo is an electric motor with a gearbox and a shaft. The shaft can be made to rotate at an angle of 0 to 180 degrees. The shaft generally has an attachment, such as an arm, and can be moved at an angle of 0 degrees through to 180 degrees. The position of the shaft is controlled using a pulse width modulation (PWM) signal sent to the servo from the JackBord. As a quick summary, pulse width modulation allows us to control the amount of energy that a power supply (the JackBord) gives to a device (the servo) by essentially turning the power supply on and off really really fast. The diagram to the right shows how the pulse width affects the position of the shaft. Most RC Servos come with three wires: signal, power and ground. These are shown below for the more common models. The ground wire is almost always brown or black, whilst the power supply wire is red and in the centre. The signal wire is usually orange. Notes and Caution RC Servos need 5V power NEVER MANUALLY TURN THE SHAFT as this could destroy the servo Be careful not to overload the servo Connecting to the JackBord To attach the RC Servos to the JackBord, follow the instructions below or one of our videos at the bottom of the page. Place the servo on the JacKano mounting plate, threading the wires through the hole in the middle to the back, as pictured below. Make sure that the long, straight edge of the mounting plate is facing towards you, and the shaft is closest to the left-hand side. When they are lined up correctly, secure the servo to the plate by using the two 8mm M3 bolts and nuts. Line up the holes on the long, straight edge of the mounting plate with the holes at the front of the JackBord, by Port B. Make sure that the shaft is facing up. Secure in place with a bolt in the middle hole. It should look like the one pictured below. On the JackBord, between the POWER Port and Port A, attach the Dual Servo Adapter to the edge using an M4 nut and bolt. As shown in the diagram below, we are going to use jumper wires to connect the RC Servo to the Dual Servo Adapter, and the Dual Servo Adapter to the JackBord. Today we’ll just be connecting Servo 1. Connect the wires from the servo to the dual adapter, lining up the black wire with the green pin, the red wire with the red pin, and the orange wire with the white pin. Then, use jumper wires to connect one of the red pins on the servo adapter to a 5V pin on the POWER Port on the JackBord. Connect a green ground pin from the adapter to a G pin on the POWER Port to ground it. Finally, connect the white pin on the adapter to Port A Pin 1. Once your servo is connected it should look something like this: If you have not done so already, create a profile and adopt the JackBord. Go to the dashboard and open the CMD page. As mentioned earlier, the shaft of the servo can move through an angle between 0 and 180 degrees. To set the servo’s shaft angle we use the svp command: svp [pin] [angle] Where: [pin] is the port pin to which the RC servo is connected to [angle] is the desired shaft angle from 0 to 180 degrees Firstly we need to set the servo’s shaft angle to 0 degrees. In the CMD line, type and enter the following command: svp a1 0 This will move the shaft to the 0 degrees angle. If your servo’s shaft does not move, this simply means that it’s already in that position. When the servo’s shaft has been set to 0 degrees, take one of the small white arms that comes with the kit and attach it to the servo, as shown below. It needs to be pointing to the left, at the 9 o’clock position, and should simply click on. Don’t worry if it’s not exactly aligned, do not forcibly turn it into position. The svp command will set the angle of the servo and leave it there. To have the shaft move between two angles we can use the svs command. The format of the command is: svs [pin] [start] [end] [delay] Where: [pin] is the port pin to which the RC Servo adapter is connected [start] is the desired start angle from 0 to 180 [end] is the desired stop angle from start to 180 [delay] is an optional delay in milliseconds When the servo shaft reaches the end angle, it will automatically return to the start angle. For example, if we wanted to have the servo’s shaft move over the angle of 90 to 125 degrees, we would type in the command line: svs a1 90 125 We can also add a delay to this command so that after each 1 degree step, the servo will wait for the specified delay. Taking the above example, we could add a 100ms delay between steps. For example: svs a1 90 125 100
- USER LED Colour Control
This program controls the color of the USER LED using a variable resistor. Turning the knob will change the color of the USER LED. In this version the variable resistor POT1 on the JackBord TOP is connected to port pin B1 on a block 2 JackBord. For a block 3 JackBord use port Pin A1. < Back USER LED Colour Control This program controls the color of the USER LED using a variable resistor. Turning the knob will change the color of the USER LED. In this version the variable resistor POT1 on the JackBord TOP is connected to port pin B1 on a block 2 JackBord. For a block 3 JackBord use port Pin A1. Program --- Control the Color of the USER LED using a variable resistor. Turning the knob will change the color of the USER LED. --- prog_vars = d/count 0 prog_vars. prog_start = pclear print "Program Start" gvr b1 0 15 l1 prog_start. prog_loop = -- main program loop print "Count /count" inc /count any /count >= 1000 -> exitprog prog_loop. prog_stop = print "Bye" prog_stop.
- PIR Sensor
< Back PIR Sensor Program --- Pir sensor program --- prog_vars = d/senout 0 d/prev 0 prog_vars. prog_start = bms 0 gt a1 prog_start. prog_loop = -- main program loop /senout /a1 any /prev = /senout -> patcat else print "out /senout" enda. any /a1 = 0 -> bms 50 any /a1 = 1 -> bms 0 /prev /senout prog_loop. prog_stop = print "Bye" prog_stop.



