top of page

Search Results

285 results found with an empty search

  • Smart LED Random Flashing

    Smart LED Random Flashing Program This program has 6 WS2812B smart LEDs connected to port A pin a1. It will cycle the LEDs through random colors. < Back Smart LED Random Flashing Smart LED Random Flashing Program This program has 6 WS2812B smart LEDs connected to port A pin a1. It will cycle the LEDs through random colors. Program --- Smart LED Random Flashing Program This program has 6 WS2812B smart LED's connected to port A pin a1. It will cycle the LEDs through random colors. --- prog_vars = d/led_no 0 d/red 0 d/green 0 d/blue 0 prog_vars. prog_start = print "Smart LED Program Started" -- turn all 6 leds off sled a1 6 0 /red /green /blue prog_start. prog_loop = -- Set each color to a random value rand 0 255 -> /red rand 0 255 -> /green rand 0 255 -> /blue -- Set the LEDs color -- /led_no is the LED we are setting. sled a1 6 /led_no /red /green /blue -- Inc to the next LED and then start again. any /led_no >= 6 -> /led_no 0 else inc /led_no enda. prog_loop. prog_stop = print "prog stopped" prog_stop.

  • Projects - Rainbow LED Display

    In this project, you will utilise all five LEDs on the TOP to create a rainbow. With proper commands, you can even make it pulse in sequence. < Back Rainbow LED Display In this project, you will utilise all five LEDs on the TOP to create a rainbow. With proper commands, you can even make it pulse in sequence. This project uses the TOP and its LEDs to create a rainbow that turns on in a sequence. We do this by connecting the LEDs to Port A on the JackBord and running a few commands to turn them on, including aon, daisy chains, and delays. This is a great introductory project if you’re just getting started, and sets the basis for future projects such as the Electronic Dice. You can find the PDF instructions using the button below. PDF INSTRUCTIONS Project Gallery

  • Basic 90-Degree Turn

    This program should see the robot be able to turn 90 degrees to the left and 90 degrees to the right. < Back Basic 90-Degree Turn This program should see the robot be able to turn 90 degrees to the left and 90 degrees to the right. Program --- Basic 90 degrees Turn Program This program should see the robot be able to turn 90 degrees to the left and 90 degrees to the right. --- prog_vars = d/count 0 prog_vars. prog_start = pclear print "Basic Drive Program Start" stop prog_start. prog_loop = left_turn_90deg -- right_turn_90deg exitnow prog_loop. left_turn_90deg = -- The robot should turn 90 degrees to the left. -- Adjust the delay value in the dly command to -- make the robot turn to the left by 90 degrees. stop rms 50 dly 250 -- change this delay to make the turn work stop left_turn_90deg. right_turn_90deg = -- The robot should turn 90 degrees to the right -- adjust the delay value in the dly command to -- make the robot turn to the right by 90 degrees. stop lms 50 dly 250 -- change this delay to make the turn work stop right_turn_90deg. prog_stop = print "Bye" prog_stop.

  • RC Servo Simple Claw

    This program uses an RC Servo on port pin A1 as a claw to grip toilet rolls. Create an open and close button on the show page. Open angle is 0 degrees and closed angle is 60 degrees. < Back RC Servo Simple Claw This program uses an RC Servo on port pin A1 as a claw to grip toilet rolls. Create an open and close button on the show page. Open angle is 0 degrees and closed angle is 60 degrees. Program --- RC Servo Demo 3 Program: Simple Claw This program uses an rc servo on port pin A1 as a claw to grip toilet roles. Create an open and close button on the show page. Open angle is 0 deg Closed angle is 60deg tmt3NneW --- prog_vars = d/run_no 0 d/claw_angle 0 prog_vars. prog_start = pclear ptl 10 0 ^ts=25^tc=red^ "RC Servo Demo 3: Simple Claw" -- open the claw by default. svp a1 0 -- Display the buttons pb 100 100 ^n=Open^p=svp a1 0^ pb 200 100 ^n=Close^p=svp a1 60^ -- Display the quit button pb 300 100 ^n=Quit^p=exitprog^ prog_start. prog_loop = -- Waste time patcat prog_loop. prog_stop = print "Bye" ptl 200 200 ^ts=45^ "Bye" svp a1 0 prog_stop.

  • 50-tcg Homepage

    Back Robotics 5001 - Introduction to Robotics This series of activities combine the principles and skills that you have learnt so far and applies them to practical issues and solutions.

  • Coding

    Coding This page will help get you started with coding and programming, and will give you more information on the JackBord’s own language Octagon. If you’re after Octagon programs, visit the Programs page. Helpful Links Default Octagon Program This is the default new Octagon program. You can use this as a template to create a new program. Click Here Soft-Serve Using Python If you would like to use Python with your JackBord, check out this Python library for the JackBord written by Lachlan Paulson! This library lets you use Python to control your JackBord and adds a whole new layer of capability. Click Here Octagon Cheat Sheet This is a cheat sheet with the Octagon basics - great as a point of reference when working on a project! Click Here

  • Home | JackBord Learning

    JackBord delivers a complete educational system for students of all ages and abilities. We help students realise their potential to become tomorrow's innovators, scientists and engineers and provide teachers with the tools they need to guide them. Introducing the JackBord BASIC We are delighted to announce the arrival of the JackBord BASIC. After 18 months of development the BASIC provides an affordable entry into the world of STE(A)M for classrooms and individuals of all ages and abilities. Young learners innate curiosity and creativity will be sparked by over 100 activities that can be aligned to curriculum and qualifications. They will learn electronics, coding, robotics, and better understand the world about them with exciting science projects. The BASIC is a perfect segue to the JackBord PRO. For more about the BASIC ............ JackBord provides the ultimate tools for teaching and learning STEM subjects for young learners Opening a world of opportunity for young people by delivering fun and authentic learning experiences for curious and creative minds of ALL abilities, creating pathways to careers in science, engineering and technology Authentic learning Jackbord focuses on learning the fundamentals through growing a student's practical skills in electronics, coding, sensors and control, with hands on lessons and projects The Jackbord system is specifically designed to enable students from any background and ability to confidently explore and learn Science, Technology, Engineering and Maths in an applied and fun way Your partner in STEM Inventor Jack Penman wanted to help learners of all abilities and backgrounds to realise their potential to become tomorrow's innovators, scientists and engineers. He didn't want them to face the same barriers he experienced as a student. "Those that think and learn differently are the ones who will make a difference to solving the worlds problems" So he invented the JackBord Pro, a powerful, unique, enduring tool and system that will excite, inspire and partner students throughout their learning journey to confidently explore science, create engineering projects, learn about electronics, develop programming skills, master robotics, analyse data, and have fun doing so. Since he has developed the JackBord Basic, TOPS (to learn electronics), a Universal Sensor Interface, JacKano, Virtual JackBord and Octagon for kids to learn coding. “Let’s deliver them a path that can take them to a variety of destinations, limited only by their imaginations.” Limited only by your imagination With the incredibly powerful Jac kBord Pro and entry level Basic supported by numerous components and extensive easy to follow guid es and activities, the possibilities for learning and exploring are virtually endless. We support you to master STEM so that you dare to dream, explore, develop and realise your imagination. Engage in forums, share your projects with us and other JackBorders. The world needs y ou! to take on science, technology and engineering. JackBord will help with you to get there . Jack spoke about his own learning experiences and challenges, and why he created Jackbord at TEDx Kapiti in a talk titled "Why I'm terrified of being normal " Dashboard JackBorders Site SHOP Educators are able to deliver curriculum and qualifications (and learn themselves!) We don't set out to be educators, however teachers will find they can easily apply our activities to meet curriculum and provide qualifications. Jack's detailed yet easy to follow videos and written guides and activities mean that students (and teachers) can learn without assistance or further guidance, however we recommend the guidance of teachers or parents. JackBord is ideal for teacher professional development. Whilst our guides and activities are designed for self learning we provide online support throughout your journey. Your partner in STEM. more..... Curious about what our users think? Here are a few testimonials from teachers and students! Jackano Jacobs tank Soccer Jackano 1/7

  • Bumper Robot

    Bumper Robot Turn your JackBord into a bumper robot! In version 1, your JackBord will go backwards and do a slight turn when it bumps into an object. In version 2, LEDs will start to flash. Bumper Robot Version 1 Bumper Robot Version 2 Construction Videos

  • Terms of Use

    LEGAL Privacy Policy, Terms of Sale & Website Use Terms & Conditions of Sale Privacy Policy Websites Terms of Use

  • Testimonials | Jackbord

    Our clients say Anita Taylor, Science Teacher, Paraparaumu College "The beauty of the JackBord interface is that students are able to engage with the learning in their own space and at their own pace. Students are not frustrated by step-by-step teacher directions, they can be given the robot and sensors, and learn through the website videos. Currently our Year 11 classes use the Jackbord to produce data from gas and soil moisture sensors. All students learn to wire up the sensor and use the website to find a program to run to collect data. Students enjoy using their fine motor and computing skills to collect quantitative data that is quickly produced and easily processed." Campbell Scott, Home School Student "Adopting the Jackbord was an enjoyable task, and the instructions were clear and easy to follow. Using the TOP was an excellent learning experience and I was fascinated and impressed at the wide range of possibilities available. I just recently added the motors and wheels and found the driving experience to be excellent, the controls simple and easy to use, and enjoyed coding different tasks to the various buttons. As for the other activities you provided links for, I have already tried out the short range proximity sensor and temperature \ humidity metre. Both were great ideas and I look forward to trying out the other activities. I really appreciated the easy to follow, step by step guide videos, and am continually amazed at the diversity of functions that one can achieve with the Jackbord. I can't think of any criticism to give you" Elgene, Student, Victoria University "JackBord is well designed and highly functional. It is a great tool for entry level robotics students and enthusiasts. The Octagon software is reliable and intuitive. I recommend it to anyone wanting an innovative and interesting learning tool." Jacob, Year 13 Student, Paraparaumu College "During lockdown having a JackBord of my own made doing my own robotics projects possible. I still had everything that I needed to get my robots up and running due to the JackBord being so robust and including everything you ever need built in; all I had to do was plug in my components. Because the JackBord works with WiFi it can be controlled from anywhere in the world so we were able to have JackBord races from at home in our own bubble" Lance Flavell,Digital Technology Teacher, Bishop Viard College "I've never really ventured into electronics with any of my classes until now, so the idea of using JackBords was out of my comfort zone. I initially had concerns about managing the electrical components and whether students might be put-off by the programming interface. Instead, the students were super enthusiastic to wire up their JackBords to meet the challenges. Students previously distracted by social media and youtube were now actively engaged in setting up their JackBords. We are continuing to develop learning units and the JackBord experience has allowed me to unpack parts of the technology curriculum I'd previously considered out of reach." Anonymous, Home Educator "So far, we have really enjoyed the JackBord, and were amazed at all the cool things Matthew could do with it. (I was so happy that I don’t need to be a specialist on the subject for him to be able to do it). The videos are easy to follow, and it’s good that terminology now also gets explained. …... Matthew also really enjoyed the online sessions with Jack and the other participants. This is really well done, and I will recommend it to any parent who has a child interested in electronics. Absolutely well worth the money. Thanks for a great product" Sophie Tukikino,Former Principal, Te Kura Maori o Porirua "The Jackbord Robotics program is presently being delivered in Te Kura Mãori o Porirua to Year 7-8 and Year 9-10 students. The JackBord is a durable, robust product, therefore it is very easy for students to become hands-on straight away. JackBord allows students to become familiar with basic coding and using a range of components to build on the robots functionality. There is scope for students to use the JackBord to explore a range of responses to a problem, through a process of trial and error, develop a solution or, a range of solutions. The feedback from our students has been very positive, teachers have observed highly motivated, engaged students who are often reluctant to move onto their next subject." Noah, Home School Student “It has worked well and connects to the internet pretty fast. Thank you" Theo's mother, Home Educator “We have never seen Theo so excited. He must have spent at least 6 hours with it yesterday and was up early this morning to get going on it again. Have a wonderful day!”

  • Gallery

    Funding Our mission is for JackBord to be the notebook equivalent for STEM subjects in all schools Our early adopter schools have identified the efficiency of the JackBord as being the key item in their teaching toolkit and are setting aside budget to purchase more. We understand some schools may have fully allocated budgets, or simply struggle for sufficient funding to undertake anything other than traditional education, often not enough for many students to achieve curriculum or realise potential; especially those with special needs or where traditional learning fails to trigger their interest. Here are some ideas for schools to consider to fund a system that could make a difference to them and their students. The JackBord Trust Visit Website JackBord Works Limited's main shareholder is a registered charity, the JackBord Trust. The Trust's primary purpose is to find ways to reach and encourage more students to take up coding, engineering and science as careers through educational advancement. The Trust could assist schools and students to find ways to fund its purpose through the purchase and or donation of JackBords from any dividends from its shareholding in the business, or as a vehicle for businesses, parents and other charities to make a tax deductible donation.

  • RC Servo Commands

    Command Guide < Back RC Servo Commands svp - Set servo position Purpose This sets the shaft position of an rc servo connected to the JackBord Syntax svp #~ pos Arguments #~ The pin to which the servo is connected to on ports A, C, D & E. pos svs - Sweep Servo from 0 to pos Purpose Sweep the servo from 0 to the specified position and back. An optional delay between 1deg steps may also be added. Syntax svs #~ pos delay Arguments #~ The pin to which the servo is connected to on ports A, C, D & E. pos The position to sweep to. 0 -180deg. delay (optional) This is an optional delay, in milli- seconds, between each 1deg step of the servo’s shaft. 5 to 50,000 milli-seconds. Examples svs a1 0 svs a1 90 svs a1 180 50 svt - Sweep Servo from position 1 to position 2 Purpose Allow a servo to sweep from one angle to another and back. eg from 90 to 100 and back. Syntax svt #~ pos1 pos2 delay Arguments #~ The pin to which the servo is connected to on ports A, C, D & E. pos1 The start position to sweep the servo to. 0 top 180deg. pos2 The stop position to sweep the servo to. 0 top 180deg. delay (optional) This is an optional delay, in milli- seconds, between each 1deg step of the servo’s shaft. 5 to 50,000 milli-seconds. Examples svt a1 45 90 svt a1 90 120 50 svt a1 /pos1 /pos2/ /delay

  • I2C Commands

    Command Guide < Back I2C Commands i2con - Enable the i2c system Purpose Turn on I2c System and update config. Syntax i2con i2coff - Disable the i2c system Purpose Turn off I2c System and update config. Syntax i2coff f2c - Find attached i2c devices Purpose This will scan the i2c port looking for attached i2c devices. When a new device is found it will be setup. Syntax f2c Examples > f2c < Finding I2C Devices.... < Setup BME280 temp on next free chan [26] < Setup BME280 RH on next free chan [27] < Setup BME280 Pressure on next free chan [28] Found 1 devices Channels & Vars Each of the devices found will be allocated the channels the require automatically. Their readings will appear in the gt command etc. g2c - Get register value from an i2c device Purpose This will get the value of the specified register from the specified i2c device address. Syntax g2c addr reg bytes Arguments addr The i2c devices address from the l2d command. 0 to 128 reg The register number from 0 to 256 bytes The number of bytes to expect back from the i2c device. 1 to 256. Pushers Yes Returns Nothing Examples > g2c 118 137 1 < g2c data 0[111] 1[0] final [111] Get reg no 137, one bytes from i2c address 118. Notes This can be used from the command line and in programs. l2c - List active i2c devices & sensors Purpose Lists all of the active i2c devices connected to the JackBord’s i2c port. This will list all of the devices associated with each i2c address. Syntax l2c l2d - List active i2c devices only Purpose Lists all of the active i2c devices connected to the JackBord’s i2c port. It only lists whole devices, not sub devices. Syntax l2d s2c - Send data to i2c device register Purpose Send data to the specified register on the specified i2c device. All values are integers. Syntax s2c addr reg value Arguments addr The i2c devices address from the l2d command. 0 to 128 reg The register number from 0 to 256 value An integer value between 0 and 256. Pushers Yes Examples > s2c 118 137 23 ->/result Notes This can be used from the command line and in programs. v2c - Show the status of the i2c system Purpose Displays the status of the i2c system including the number of devices connected and the i2c pins. Syntax v2c rsti2c - Reset all i2c devices Purpose This will reset all of the i2c devices connected to the JackBord and remove them from the system. Syntax rsti2c Examples rsti2c

  • Random Number Test

    This program shows you how to use the rand, random number generator command. It will generate a random number between zero and five each time the main program loop runs. If the number generated is 4 the program will exit and print BOOM!. You can use random numbers in programs where you want an event to occur at an unpredictable time. When the program runs it will exit after a random interval. This interval is dependent on how quickly the number 4 arises in the random number sequence. < Back Random Number Test This program shows you how to use the rand, random number generator command. It will generate a random number between zero and five each time the main program loop runs. If the number generated is 4 the program will exit and print BOOM!. You can use random numbers in programs where you want an event to occur at an unpredictable time. When the program runs it will exit after a random interval. This interval is dependent on how quickly the number 4 arises in the random number sequence. Program --- Random Number Test Program This program will generate a random number between zero and five. It Will wait until the number four comes up and then exit. --- prog_vars = d/count 1 d/randno 0 prog_vars. prog_start = print "Random Number Test Program" prog_start. prog_loop = rand 0 5 -> /randno print "Count /count rand /randno" any /randno = 4 -> "BOOOM!"|exitprog inc /count prog_loop. prog_stop = print "Prog STOPPED!" prog_stop.

  • Raspberry Shake Quake Alert

    Raspberry Shake Quake Alert Program This program gets the Raspberry Pi Shakes geophone EHZ channel and d-trends it before plotting it. It also lets you set an alert threshold such that when the geophone value goes above the threshold an alert message is displayed. < Back Raspberry Shake Quake Alert Raspberry Shake Quake Alert Program This program gets the Raspberry Pi Shakes geophone EHZ channel and d-trends it before plotting it. It also lets you set an alert threshold such that when the geophone value goes above the threshold an alert message is displayed. Program --- Raspberry Shake Quake Alert Program This program gets the Raspberry Pi Shakes geophone EHZ channel and detrends it before plotting it. Set an alert threshold for the alarm to be triggered. --- prog_vars = d/count 0 d/xpos 0 -- Processed Geophone Sensor Value -- This has been detrended d/pro_EHZ 0.0 d/prev_EHZ 0.0 prog_vars. prog_start = pclear d500 -- Display the Title. ptl 100 1 ^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 -- Ignore the first few readings so the de-ttending can work any /count >= 3 -> -- Get a fresh set of readings from the shake -- grsk AM.R5C47 grsk AM.R7DD4 -- Wait a while for next readings -- NEED this delay. d250 -- d-trend the reading sub /rs_EHZ /prev_EHZ -> /pro_EHZ -- Invert the negative values abs /pro_EHZ -> /pro_EHZ -- Plot the pro_EHZ geophone value plot 10 150 ^id=rs^t1n=Z^t2n=E^t3n=N^xp=/xpos^v1=/pro_EHZ^ -- Display the plot value ptl 30 100 ^ts=16^ "X /xpos > EHZ /rs_EHZ pro EHZ /pro_EHZ " -- 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 prog_loop. prog_stop = ptl 25 25 ^ts=75^ "Bye" prog_stop.

  • Rocket Launch

    This program displays some information during a rocket launch. < Back Rocket Launch This program displays some information during a rocket launch. Program --- First Octagon Progam Refer to section 5.2 of the JackBord JOurneys book no 1 while looking at this program. --- prog_vars = d/launch_rocket 0 d/air_temperature 0.0 d/rh 0 d/address "" prog_vars. prog_start = -- Setup the pgoram /launch_rocket 10 /air_temperature 28.5 /rh 80 /address "1 Olympus Mons Mars" prog_start. prog_loop = -- Display some information print "Launch in /launch_rocket secs" print "to /address" print "where the air temp is /air_temperature RH is /rh" exitprog prog_loop. prog_stop = print "Prog STOPPED!" prog_stop.

  • Educators

    Educators SHOP JackBords are robust and multifunctional devices that seamlessly integrates electronics, science, coding, robotics, and construction—all in one powerful tool!" Authentic learning The possibilities are in the minds and hands of users No prior knowledge is required. Students can learn at their own pace inspired by over 100 activities covering 4 Levels within 4 Foundation and 6 Application subjects. With learner and teachers guides educators can deliver curriculum and achievement standards. Ideal for primary and secondary schools, home schoolers, maker groups, holiday workshops, youth groups, JackBord will captivate curious minds for hours, opening up a world of opportunity in science, engineering, technology, robotics and more. Find out what teachers think Step-by-step guides & videos make learning & teaching a breeze! & much more! Now with a basic foundation in electronics, coding and sensors the world of STEM really opens up. We provide many more Guides, Activities and Projects for Science, Robotics Technology Engineering Arts & more! to inspire curious minds to create their own projects Sensors Progress you prior learnings in electronics and coding to discover how sensors work from our huge range, use your electronics knowledge to connect them to the JackBord, then use programming to collect the data! Test for temperature and humidity, soil moisture, light, Ph, water cleanliness, range, numerous possibilities. Programming Now move on to coding, including the concepts of data and data processing leading to practical application. We have our very own coding language called Octagon, which is great for beginners and an ideal segue into other programming languages. Electronics Start your journey by learning about electronic components, theory and application. Electronics lays the foundation for coding and robotics. Learn to design and construct electronic circuits! Table of User Guides & Activities Learning Materials Delivering curriculum and providing achievement standards couldn't be easier with easy to understand video guides and activities. Learners need no prior knowledge and can learn at their own pace Professional Development Teachers take control of own professional development in IT. Keep ahead of the students. No prior knowledge required and learn at your own pace and place with our easy to follow video guides and activities. Octagon Our own built-in programming language. Easy to learn and use and a fantastic stepping stone to more complex languages such as Python or Java Script. More advanced programmers can skip Octagon and programme JackBord using Python. It couldn't be easier! Virtual JackBord Use anywhere, anytime. Wi fi / IR enabled. Learners can carry on their projects online / at home on their own DashBoard. No need to take away the hardware JackBord Basic Keep water, soil moisture or air cleanliness monitoring projects going for months on end with our JackBord Basic. Analyse the data with Octagon Build robots, toys, games, science projects, weather stations, testing environments, greenhouses, pendulums, tools ...-you name it. Bolt on JacKano, our precision laser cut, aluminium parts which you put together using real nuts 'n bolts. The possibilities are in the hands of users. JacKano MeKits & Sensors MeKits are special collections of parts we have put together to give learners a head start with projects in Science, Horticulture, Robotics, Electronics, Construction. These will inspire them to make their own projects using an array of sensors, servos, motors and JacKano available. TOP Learn basic electronics with no prior knowledge with the amazing TOPs (Pro TOP & Basic TOP) With built in LEDs, resistors, capacitors, transistors, switches build circuits and bring electronics alive. Understanding electronics is the foundation to programming and robotics. Community Work with the local community to monitor a local stream's water quality, an area's micro climate or air quality, wi fi hot spots, or build a beach cleaning robot (picture above). The possibilities are limited only by imaginations Ideal for library after school or holiday programmes, Youth groups SHOP Agricultural & Horticultural Science Design & Visual Communication Chemistry & Biology Digital Technologies Physics, Earth & Space Science Engineering Science Construction Statistics & Mathematics Geography English (Te Reo Māori to come) Robotics

  • Input/Output Commands

    Command Guide < Back Input/Output Commands #off Turn All of a Port's Pins Off #off Turn all of port #’s pins off. Purpose This will turn all of the pins on the specified port off. Syntax #off Arguments # The port letter a, c, d, e Examples aoff Turn all port A pins off coff Turn all port C pin off Notes See the #on command to turn port pins on #on Turn All of a Port's Pins On #on Turn all of port #’s pins on. Purpose This will turn all of the pins on the specified port on. Syntax #on Arguments # The port letter a, c, d, e Examples aon Turn all port A pins on con Turn all port C pin on Notes See the #off command to turn port pins off. #~ Turn Pin On or Off #~ Turn pin on or off Purpose Allows you to turn a given port A, C, D, E pin on or off. Syntax # ~ state Arguments # The port letter a, b, c, d ~ The port pin number 1 to 5 state The desired state of the pin. 0=OFF 1=ON Pushers No Returns Nothing Examples a1 1 Turn port A pin 1 on a1 0 Turn port A pin 1 off Notes This can be used from the command line and in programs. Channels & Vars Updates the corresponding channel. get #~ Turns the Pin Into an Input and Gets a Reading From It get #~ Turns the pin into an input and gets a reading from it Purpose Set the pin as an input and get a fresh reading from it in real time. Syntax get #~ Arguments # The port letter a, b, c, d ~ The port pin number 1 to 5 Notes Takes a direct reading from the hardware pin. glr Get a Fresh Set of Readings and Display Them glr Get a fresh set of readings and display them Purpose This will get fresh readings from any sensors etc and display them. Syntax glr gqr Get Quick Readings in One Line Form gqr Get quick readings in one line form Purpose Gets a set of readings and puts them on one line Syntax gqr Examples > gqr < a1000a2000a3000a4000a5000 b1 000 b2 000 b3 000 b4 000 b5 000 c1 000 c2 000 c3 000 c4 000 c5 000 d1 000 d2 000 d3 000 d4 000 d5 000 e1 000e2000e3000e4000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 grd Get Raw Readings from the Channels in One Line Form grd Get raw readings from the channels in one line form Purpose Gets a fresh set of raw readings and displays them on one line Syntax grd Examples > grd < 1 0 0.00|2 0 0.00|3 0 0.00|4 0 0.00|5 0 0.00|6 0 0.00|7 0 0.00|8 0 0.00|9 0 0.00| 10 0 0.00|11 0 0.00|12 0 0.00|13 0 0.00| 14 0 0.00|15 0 0.00|16 0 0.00|17 0 0.00| 18 0 0.00|19 0 0.00|20 0 0.00|21 0 0.00| 22 0 0.00|23 0 0.00|24 0 0.00|25 0 0.00| 26 0 0.00|27 0 0.00|28 0 0.00|29 0 0.00| 30 0 0.00|31 0 0.00|32 0 0.00|33 0 0.00| 34 0 0.00|35 0 0.00|36 0 0.00|37 0 0.00| 38 0 0.00|39 0 0.00|40 0 0.00| Notes The format of the output is: |chan raw raw_float| grrd Get Real Raw Readings from the Channels in One Line Form grrd Get real raw readings from the channels in one line form Purpose Gets a fresh set of raw readings and displays them on one line Syntax grrd Examples > grrd < a10a20a30a40a50b10b20b3 0 b4 0 b5 0 c1 0 c2 0 c3 0 c4 0 c5 0 d1 0 d2 0 d3 1 d4 0 d5 0 e1 0 e2 0 e3 0 e4 0 Notes The format of the output is: pin value gt Get the Values of the Specified Port gt Get the values of the specified port. Purpose Returns a table of the current values of the port #. If the # port is left out it return the values of all ports. Syntax gt# or gt Arguments # The port letter a, b, c, d, e Examples gt a Get the port A values gt 6 Get the value of channel 6 Notes The type column shows the current type of the pin. pulse Pulse Output pulse Pulse Output Purpose Pulses the selected output on for the specified length of time Syntax pulse #~ time Arguments # The port letter a, b, c, d ~ The port pin number 1 to 5 time (milli secs) The amount of time for which the pin will remain high. Pushers No Examples pulse a1 100 Pulse a1 on for 100ms puon Set the Pin as an Input with the Pull-Up Resistor Enabled puon Set the pin as an input with the pull-up resistor enabled Purpose Makes the pin an input with an internal pull-up resistor enabled Syntax puon #~ Arguments # The port letter a, b, c, d ~ The port pin number 1 to 5 Examples puon c5 puon a4 spex Set Port Expander spex Set Port Expander Purpose This will setup the specified MCP23017 i/o expander on a virtual port with a port letter from h to l Syntax spex addr port Arguments addr The i2c address on which the expander is located port The letter of the virtual port to which the i/o expander is to be associated with: h, i, j, k or l Pushers No Examples spec 12 h Link the i/o expander on i2c address 12 to virtual port h Notes Once linked the i/o expander port pins may be used in the same manner as normal pins. ie using the #~ notation. The difference is that each i/o expander port has 8 pins instead of 5. spm Set a Pin's Mode of Operation spm Set a pins mode of operation Purpose Set the mode of operation of a pin Syntax spm #~ mode Arguments # The port letter a, b, c, d ~ The port pin number 1 to 5 mode The mode of operation for the pin Mode Description 0 Logic input no pull-up resistor 1 Logic input with pull-up resistor on 2 Logic output 3 Analog input port b only Notes spm a1 1 Set pin a1 as a logic input with a pull- up resistor spm a4 2 Set pin a4 as a logic output tg #~ Toggle the Value of the Selected Pin tg #~ Toggle the value of the selected pin Purpose Toggles the value of the selected pin. If it’s on it will go off and vice versa Syntax tg #~ Arguments # The port letter a, b, c, d ~ The port pin number 1 to 5 Pushers Yes Returns Nothing Examples tg a1 Toggle value of a1 tg d1 Toggle the value of the USER LED tg d1 -> /user_led_state

  • Any and All Numbers Test

    This program tests the any and all instructions with floating point and integer numbers. < Back Any and All Numbers Test This program tests the any and all instructions with floating point and integer numbers. Program --- Any and All Numbers Test Program --- 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 /pin_no != 1 /pin1 0 /pin2 1 /pin_no 2 all /pin_no != 1 -> print "Test 1 TRUE CORRECT" else print "Test 1 FALSE WRONG" exitprog enda. -- Test 2 Should be FALSE ie /text1 not = to /text2 all /text1 = /text2 -> 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 3 FALSE WRONG" exitprog enda. -- Test 5 Should be TRUE ie /float1 = 12.5 all /float1 = 12.5 -> print "Test 5 TRUE CORRECT" else print "Test 5 FALSE WRONG" exitprog enda. -- Test 6 Should be TRUE ie /float1 > /float2 all /float1 > /float2 -> print "Test 6 TRUE CORRECT" else print "Test 6 FALSE WRONG" exitprog enda. prog_loop. prog_stop = print "Bye" prog_stop.

bottom of page