Great Cow Basic CHIPINO
Search
  • Home
  • Getting Started Guide
  • GCB
  • CHIPINO
  • Sample Projects
  • Contact Us
  • GCB Forum

Sample Projects

This is collection of popular projects for the Great Cow Basic CHIPINO. We are continually releasing new projects. Each one has a short description and then the sample code file you can download. All code samples are free to use in anyway you want. If you have a code sample you would like us to post here, then send us a brief description of it at our contact page and we'll review it and if we like it we'll send you and email with more detail on how to send to us for upload. If we post your project you get full credit and will receive a free reward depending on how complex the project is and how well its written up. Top prize is a complete Start Kit.

Blinking LED By Controlling the Port Pin


Picture
This is a simple program that flashes the Green LED on the CHIPINO module or Red LED on the CHIPINO Demo-Shield by controlling the pin.

blinkled.gcb
File Size: 0 kb
File Type: gcb
Download File

Blink LED by Controlling the PORT Register with Binary Number

Picture
This is a simple program that flashes the Green LED on the CHIPINO module or Red LED on the CHIPINO Demo-Shield by controlling the whole PORT.

blinkled_binary.gcb
File Size: 0 kb
File Type: gcb
Download File

Blink LED by using Include File with CHIPINO Pin Names

Picture
This is a simple program that flashes the Green LED on the CHIPINO module or Red LED on the CHIPINO Demo-Shield by including a header file with the CHIPINO Pin Names Defined (i.e. D13).
blinkled_include.gcb
File Size: 0 kb
File Type: gcb
Download File

HeartBeat LED 



Picture
This program will show how to dim an LED connected to Pin13 using the SoftPWM command. It will dim and then brighten the LED very quickly like a heartbeat.

softpwm_slow.gcb
File Size: 0 kb
File Type: gcb
Download File


Potentiometer

Picture
This program reads the potentiometer on the Demo-Shield connected to AN0 and lights the LEDs connected to PORTB to form a bar graph
that indicates how far the pot has been turned. This is similar to the volume display on a stereo.
adc_pot.gcb
File Size: 0 kb
File Type: gcb
Download File

Light Sensor

Picture
This program monitors a photoresistor connected
to the AN1 pin. If its in the dark it will light the LED on D13. If its in the light then LED is shutoff.



adc_lightsensor.gcb
File Size: 0 kb
File Type: gcb
Download File

PWM Two LEDs Bright and Dim Together

Picture
This program dims and brightens two LEDs at the same time . 


softpwm_dual_together.gcb
File Size: 0 kb
File Type: gcb
Download File

PWM Two LEDs Alternating Brightness

Picture
This program alternates dimming two LEDs. As one dims the other brightens and then they reverse.

softpwm_dual_alternate.gcb
File Size: 0 kb
File Type: gcb
Download File


LCD

Picture
This project shows you how to drive an LCD shield with the CHIPINO module. It writes Hello on the first line and then shifts over three spots to write World on the second line.

lcdsampleschematic.pdf
File Size: 118 kb
File Type: pdf
Download File

dfrobot_lcd.gcb
File Size: 0 kb
File Type: gcb
Download File

Switches

Picture
This program will light LEDs on the CHIPINO Demo Shield based on which switch is pressed. If left switch is pressed, left LED lights. If right switch pressed, right LED lights.
switch_dual.gcb
File Size: 0 kb
File Type: gcb
Download File

Tone 


Picture
This program produces a constant 440 hertz tone on the CHIPINO Demo Shield Piezo Speaker.



tone.gcb
File Size: 0 kb
File Type: gcb
Download File

Tune - Mary Had A Little Lamb

Picture
This program creates the tune Mary Had A Little Lamb on the Demo Shield Piezo Speaker. It plays once and then waits for a switch to be pressed to play again.

mary.gcb
File Size: 0 kb
File Type: gcb
Download File


Keypad

Picture
This project reads a keyboard and sends the key pressed to the PICkit2 UART Terminal. Each press is show in the terminal window to match the key pressed (1 key sends 1, A key sends A
keypad.gcb
File Size: 1 kb
File Type: gcb
Download File

Servo

Picture
This project allows you to control a servo motor position by rotating a potentiometer. It shows how to use ADC to control a Mini Servo Motor.
pot_servo.gcb
File Size: 0 kb
File Type: gcb
Download File

7-Segment

Picture
This program counts from 0 to 9 and then repeats over and over showing how to create numbers on a 7-Segment LED Display.


ledsampleschematic.pdf
File Size: 119 kb
File Type: pdf
Download File

led_display.gcb
File Size: 0 kb
File Type: gcb
Download File

8x8 Dot Matrix

Picture
This project shows how to produce some of the more common ASCII characters in 5x8 mode on a Dot Matrix LED display.
dotmatrix.gcb
File Size: 3 kb
File Type: gcb
Download File


Graphic LCD

Picture
This project shows how to drive a KS0108 based Graphic LCD module with the built in commands of Great Cow Basic. 
Download GCB Files
GLCD.gcb
GLCD Schematic
Picture
Correct Result
Picture
This is the wrong result. If you get this result swap the CS1 and CS2 connections.

Software Serial 

Picture
This project reads the ADC and sends the result to the PICkit 2 UART Terminal. Appendix A of our Great Cow Basic User Manual shows how to use the PICkit 2 Terminal.
serialsoft.gcb
File Size: 0 kb
File Type: gcb
Download File

Picture

Picture