12Blocks
Welcome | Contents | Getting Started | Reference | Hardware | FAQ | Buy
Blog | Forum
Overview | Your First Program | Ideas to get going

Example Programs

Example Programs

12Blocks comes with dozens of example programs to help you get started.
Just navigate to "File/Examples" and choose from the categories.
graphic

Uses

12Blocks is ideal for anyone starting out with microcontrollers.  You can start with simple projects and work your way up to take full advantage of your device's capabilities. You can even transitioning to programming in text languages like C and Basic by viewing the code that 12Blocks generates using the "View>Code" feature.

Here are some things you can try:
- drive a robot with servos
- draw graphics for vga/tv
- react to keyboard/mouse
- communicate with a terminal
- output music tones, wav files, record and play back sounds, and synthesize speech
- interface with sensors like the PING and a compass
- perform input/output on the pins: measure frequency,pulse, count edges...

  
Use Case
Detail
PC-based Controller
Connect your microcontroller to other devices and use 12Blocks to monitor and change the variable controlling the device- for example, the position of a servo.
Tuning and Calibrating Parameters
Use a variable in 12Blocks to change the parameters of a PID Control
Interface with other Hardware
Use the LSA view to monitor timing signals when working with I2C devices like a compass or eeprom
Take Measurements
View and measure the signals from an ADC with "View Values"
SCADA Prototype Tool
Control a remote system and log data for sharing with other programs.
Teaching Tool
Introduce operation of basic instrumentation such as DSO, LSA etc.
Robot Design Platform
View sensor values and control actuators with 12Blocks

  
Projects Ideas*
Detail
Internet Weather station
Add sensors to measure: temperature, wind direction and speed, camera..  View the measurements in "View Values" or graph them in real time.
Balancing Robot
 
1.    Build robot with tilt sensor and wheel encoder
2.    Tune the control algorithm
Digital Oscilloscope/Spectrum Analyzer
 
1.    Measure analog values and graph them.
2.    View signal in "View Values"
Function Generator
 
1.    Add a DAC to the Propeller to generate analog values
2.    Assign controls to control the waveform: pwm, sine, square...
Measure sensors
Gyro, accelerometer, Ping, IR , wheel encoder, compass, GPS, temperature …….
Control actuators
 
Solenoid, Hobby Servo, motors, stepper motor, H-bridge
Process Control
Measure temperature and pH while fermenting beer

*For additional ideas visit our site: http://onerobot.org/products/12blocks/applications/ to see how people use 12Blocks.

About OneRobot

The people behind OneRobot believe in building sophisticated, yet affordable products by pushing off the shelf components to their limits. We aim to understand the components we use through detailed measurements and analysis- then we engineer the optimal solution.

Thus far, we have developed:
·     ViewPort The Premier Debugging Environment for the Propeller        
·     12Blocks Drag blocks together to quickly build programs       
·     PropScope USB Oscilloscope, Function Generator, Logic Analyzer    
·     TBot Sophisticated wireless robot     
·     DanceBot Vision Guided Balancing Robot    
·     Parallax Propeller Book  Programming & Customizing the Multicore Propeller Microcontroller: Official Guide

graphic

Visit us here:
Home Page:                  http://onerobot.org