Example KodeKLIX Circuits

Similar documents
Logic diagram: a graphical representation of a circuit

Department of Electrical and Electronics Engineering Logic Circuits Laboratory EXPERIMENT-1 BASIC GATE CIRCUITS

TOP SERVO SIGNAL 5 SERVO SIGNAL 3 SERVO SIGNAL 4 SERVO SIGNAL 6 T B T B T B T B T B SERVO TRIGGER 1 BOTTOM

UNIT E1 (Paper version of on-screen assessment) A.M. WEDNESDAY, 8 June hour

Tarocco Closed Loop Motor Controller

Lecture 9 Transistors

In the Mr Bit control system, one control module creates the image, whilst the other creates the message.

ARDUINO / GENUINO. start as professional

Copyright 2003 by Elenco TM Electronics, Inc. All rights reserved. No part of this book shall be reproduced by REV-B Revised 2004 any means;

R & D Electronics DIGITAL IC TRAINER. Model : DE-150. Feature: Object: Specification:

LOGIC MODULES INTRODUCTION

STEM in Practice AISWA SAMPLE. with KodeKLIX. Def ine Plan Model Test Ref lect Improve NAME: STUDENT WORKBOOK

Hello, and welcome to the TI Precision Labs video series discussing comparator applications. The comparator s job is to compare two analog input

Introduction to programming with Fable

Monday 13 June 2016 Afternoon Time allowed: 2 hours

STEM in Practice AISWA SAMPLE. with KodeKLIX. Def ine Plan Model Test Ref lect Improve EXTENSION ACTIVITIES

Q181V Whammy Bar Controller

I2C Demonstration Board LED Dimmers and Blinkers PCA9531 and PCA9551

Copyright 2005 by Elenco Electronics, Inc. All rights reserved. No part of this book shall be reproduced by REV-B Revised 2005 any means; electronic,

Process Components. Process component

Electronics, Sensors, and Actuators

Additional Programs for the Electronics Module Part No

ELEXBO A-Car-Engineering

Q181EB Expression Block Controller

Chapter 14. using data wires

ELECTRONICS STARTER KIT

LS7362 BRUSHLESS DC MOTOR COMMUTATOR / CONTROLLER

STEPPING MOTOR EMULATION

Ev3 Robotics Programming 101

It s Logical! Technical Newsletter. Logic, the basics you need to know

CSE 3215 Embedded Systems Laboratory Lab 5 Digital Control System

hij Teacher Resource Bank GCE Electronics Exemplar Examination Questions ELEC2 Further Electronics

ADJUSTABLE SPEED DRIVES. AS1 Drive

Copyright 2007 by Elenco Electronics, Inc. All rights reserved. No part of this book shall be reproduced by REV-C Revised 2007 any means; electronic,

Introduction to Electronics and Breadboarding Circuits

GCSE Electronics 44301

Chapter 5: Signal conversion

STC-KNX (32-channel AP)

Blue Point Engineering

KNX ENO 634 (32-channel AP)

Using the SparkFun PicoBoard and Scratch

understanding sensors

Understanding the Arduino to LabVIEW Interface

recognise that electronic systems are assembled from sensing, processing and out put sub-systems, including:

The Transistor Tester user manual

Semiconductors, ICs and Digital Fundamentals

1. The decimal number 62 is represented in hexadecimal (base 16) and binary (base 2) respectively as

Index. n A. n B. n C. Base biasing transistor driver circuit, BCD-to-Decode IC, 44 46

PS 12b Lab 1c IV Curves

Electronics (JUN ) General Certificate of Secondary Education June Time allowed 2 hours TOTAL

Fig 1: The symbol for a comparator

Q181RC Ribbon Controller

Attribution Thank you to Arduino and SparkFun for open source access to reference materials.

BINARY. User Manual. Version 1.0

MTY (81)

ZT-30 ZeroTEM TRANSMITTER MANUAL

EE283 Electrical Measurement Laboratory Laboratory Exercise #7: Digital Counter

WARNING: SHOCK HAZARD - Never connect Snap Circuits to the electrical outlets in your home in any way! Batteries:

Unidirectional Gateway EnOcean - KNX/BUS

MASTER/SLAVE TENSION CONTROL

05/11/2006. Lecture What does a computer do? Logic Manipulation. Data manipulation

ICS REPEATER CONTROLLERS

ECE 5670/6670 Project. Brushless DC Motor Control with 6-Step Commutation. Objectives

6.111 Lecture # 19. Controlling Position. Some General Features of Servos: Servomechanisms are of this form:

Phys Lecture 3. Power circuits how to control your motors Noise and Shielding

KNX manual 1-channel flush-mounted switch actuator SU 1

PICAXE S. revolution Revolution Education Ltd. Web: Vesrion /2009 AXE106.P65

A Super trainer with advanced hardware and software features only found in very expensive equipment.

1 The advantages and limitations of electronic systems Electronic system... 3

Electronic Components

SB.5 MODEL 3200 / 3300 DIGITAL INDICATOR INSTRUCTION MANUAL. Instrument Series

E-Tec Module Part No

Experiment (1) Principles of Switching

Basic Microprocessor Interfacing Trainer Lab Manual

Objectives: Learn what an Arduino is and what it can do Learn what an LED is and how to use it Be able to wire and program an LED to blink

Directions for Wiring and Using The GEARS II (2) Channel Combination Controllers

HAW-Arduino. Sensors and Arduino F. Schubert HAW - Arduino 1

Resistive components in circuits

BINARY. Logic functions for analog computation DIY BUILD GUIDE GRAYSCALE.

Parts to be supplied by the student: Breadboard and wires IRLZ34N N-channel enhancement-mode power MOSFET transistor

Home Map Projects Construction Soldering Study Components 555 Symbols FAQ Links

This document is intended for Lighting Control Systems professionals

EE-241. Introductory Electronics Laboratory Project Ideas Fall 2009

ELEC1 (JUN13ELEC101) General Certificate of Education Advanced Subsidiary Examination June Introductory Electronics TOTAL. Time allowed 1 hour

Your EdVenture into Robotics 10 Lesson plans

ME 2110 Controller Box Manual. Version 2.3

Lecture - 18 Transistors

introduction to Digital Electronics Install the Arduino IDE on your laptop if you haven t already!

Unit 1 Electronics Name: Form:

Experiment#6: Speaker Control

More about the ICs in Snap Circuits

Intermediate 2 Electronic and Electrical Fundamentals Specimen Question Paper NATIONAL QUALIFICATIONS [C025/SQP068] Time: 2 hours 30 minutes

For this exercise, you will need a partner, an Arduino kit (in the plastic tub), and a laptop with the Arduino programming environment.

Rodni What will yours be?

Embedded Systems. Oscillator and I/O Hardware. Eng. Anis Nazer First Semester

THE INPUTS ON THE ARDUINO READ VOLTAGE. ALL INPUTS NEED TO BE THOUGHT OF IN TERMS OF VOLTAGE DIFFERENTIALS.

Shock Sensor Module This module is digital shock sensor. It will output a high level signal when it detects a shock event.

How to Pair AbiBird Sensor with App and Account

40 Amp Digital Bidirectional PWM Motor Controller with Regenerative Braking BIDIR-340-DR

Wireless Copilot. Safe2Fly - Height Only Version. Page NanoQuip Ltd

Transcription:

Example KodeKLIX Circuits Build these circuits to use with the pre-installed* code * The code is available can be re-downloaded to the SnapCPU at any time. The RGB LED will cycle through 6 colours Pressing [14] will buzz, sliding [15] will play tune Pressing button C.3a or C.3b will spin motor COPLIN 2011-2017 www.kodeklix.com Page 6

???? Completed Project 0.3 Let there be Light! (no SnapCPU required) Assemble the snap components as shown in Circuit 0.3 For the Lamp [45] to light, the press switch [14] needs to be activated Rotate the lamp 180 o ; does it still light when the switch is pressed? Challenge 1: Lamps are a high power device. To work, the need a lot of electricity compared to an LED. Modify the circuit to use different input s parts for [?] and identify which are able to allow this high power to flow. Do the parts that work have high or low resistance; good or bad conductivity? Challenge 2 : Build your own torch. Some project need to sense light and dark; if you need a torch, why not build it! Circuit 0.3 COPLIN 2011-2017 www.kodeklix.com Page 13

Completed Project 1.1 Blinking LED Assemble the snap components as shown in Circuit 1.1 Construct the following BLOCKLY code and download to the SnapCPU Observe the LED marked C.0 blinking This code will loop forever Circuit 1.1 This code controls the default flash rate. 350ms is 0.35seconds ON followed by 0.35s OFF. Challenge: modify code to change blink rate of the LED * In order to download the coding changes, your SnapCPU will need to be powered-up and connected to a computer via its download link cable refer download guide * The SnapCPU is designed so that it can be directly connected to the terminals of the battery box and the polarity of the connections is correct. Note: this will immediately power-up SnapCPU and start the code running. COPLIN 2011-2017 www.kodeklix.com Page 22

Level 2: Single Input Circuits Flash LED C.0 when Input C.1 triggered by components connected to it. Test this using each of these input components in sequence Push button Slide switch Magnet sensor Light sensor COPLIN 2011-2017 www.kodeklix.com Page 35

Completed Project 2.3 Magnet Sensor input to SnapCPU Assemble the snap components as shown in circuit 2.3; Construct the BLOCKLY code below and download to the SnapCPU Observe the LED C.0 light up whilst input C.1 is connected to high via [13] high is activated by the disc magnet Review the following BLOCKLY code to understand what is happening Circuit 2.3 Code is same as Project 2.1 A magnet switch is momentary (only valid when magnet is present) so needs to be held until the code sees it. Lay the magnet flat, and ou may also need to move the magnet to find where the contacts in the sensor are. * The SnapCPU connections C.1, C.2, and C.4 are normally pulled low, or electrically speaking connected to ve via a large resistance component; this gives the SnapCPU some definition when nothing is connected. COPLIN 2011-2017 www.kodeklix.com Page 39

About Binary Numbers Binary numbers are how computers count Humans count in tens because we have 10 digits on our hands Computers count with digits 0 and 1 only Decimal Binary 0 0 000 1 1 001 2 10 010 3 11 011 4 100 100 5 101 101 6 110 110 7 111 111 COPLIN 2011-2017 www.kodeklix.com Page 52

Level 3: Quick Quiz Complete these logic truth tables for inputs A and B; you want check with a circuit you built earlier Hint: NAND is NOT AND; NOR is NOT OR A B AND A B OR A NOT 0 0 0 1 1 0 1 1 0 0 0 1 1 0 1 1 0 0 1 1 A B NAND 0 0 0 1 1 0 1 1 A B NOR 0 0 0 1 1 0 1 1 A B XOR 0 0 0 1 1 0 1 1 COPLIN 2011-2017 www.kodeklix.com Page 53

Completed Project 4.8 Directional Motor Control via the SnapCPU Assemble the snap components as shown in circuit 4.6 Construct the BLOCKLY code below and download to the SnapCPU Pressing the built-in C.3 button will reverse the direction that the motor spins Circuit 4.8 Challenge: investigate alll the other set motor options. Why does the motor with a fan take a while to stop after the command is given. Use a voltmeter to measure the voltage and polarity with each command. COPLIN 2011-2017 www.kodeklix.com Page 67

Completed Project 5.3 User control of sound output, eg Morse Code Assemble the snap components as shown in Circuit 5.3; Construct the BLOCKLY code below and download to the SnapCPU Press button [14] and observe response Review the following BLOCKLY code** to understand what is happening Try pulsing button [14] so as to send a Morse code message via the speaker [20] **When C.1 pressed on **Musical note will play Challenge: Change input parts to verify that any switch will work with the code. * The KodeKLIX SnapCPU software includes a Sound FX simulator so you can preview the sound samples as you write your code. Circuit 5.3 COPLIN 2011-2017 www.kodeklix.com Page 74

KodeKLIX SFX; CloseUP Guide Close SFX ID Descriptive Name BASIC is shown here Test the SFX Code Keyboard Synthesizer Tune Editor included with KodeKLIX PICAXE Sounds PWM Sounds Import TUNEs TUNE Format EEPROM Format COPLIN 2011-2017 www.kodeklix.com Page 81

Analog-to-Digital Concepts Analog-to-Digital Digital-to-Analog 0-255 is 8-bit Resolution Digitising Analog signals are understood by digital systems only after they have been digitised, Digitising involves measuring the analog signal and storing those values. The scale used to measure determines the accuracy of the digitised version. BINARY: 1 s and 0 s only; DECIMAL regular 0-9 digits used Low 2-bit Resolution 3 2 1 0 Better 3-bit Resolution 7 6 5 4 3 2 1 0 COPLIN 2011-2017 www.kodeklix.com Page 89

Completed Project 6.1 Making decisions that are not black and white Assemble the snap components as shown in Circuit 6.1; Construct the BLOCKLY code below and download to the SnapCPU In a dark room, LED C.0 should be lit up In a bright room, LED C.0 should be unlit Review the following BLOCKLY code to understand what is happening **rather than on/off, get a scale value from the light sensor between 0 and 255 Circuit 6.1 **adjusting the threshold will determine when the action will occur Challenge: Try different settings to understand the sensitivity to light conditions. Part [16] has high resistance in the dark, and low resistance in bright light. Low resistance gives high vara values. Why? Because the low sensor resistance makes SnapCPU input closer to +ve voltage of the battery! COPLIN 2011-2017 www.kodeklix.com Page 90

Current flows Introducing the Transistor A transistor is a switch which needs a little energy to turn things ON/OFF that require a lot of electricity (like a motor) Transistors are easy to use if you understand the way electricity is connected to the motor, etc KodeKLIX transistors components are modified internally so as to respond without the need for additional external components. The connections Ready, Set, Go! have technical names in the electronic industry like Collector, Base and Emitter (or Source, Gate, Drain for a more efficient FET device). Connected to power source; eg. battery This controls the switching (by SnapCPU) This connects to the load ; eg a motor Ready Set Go! COPLIN 2011-2017 www.kodeklix.com Page 102

Completed Project 6.7 Adjustable Light Sensing without a SnapCPU Assemble the snap components as shown in Circuit 6.7 The adjustable resistor [53] can be used to set the sensitivity of the light sensor [16] Try this with other analog sensor such as temperature [33T] and moisture/touch [12] Replace the output LED with other output devices, eg motor or lamp Circuit 6.7 Challenge: Try to research how this circuit works. To get you started, here are some clues. The resistance the light sensor [16] has and how it changes. The fixed resistor [34] has a value of 100k; how does the voltage to the transistor change and what value does it need to reach to switch. COPLIN 2011-2017 www.kodeklix.com Page 104