Updated 24 September 2020

Kits and Gadgets Electronics Inc.
Farwaniya, Kuwait 80003
Kuwait

ph: +965 99571844

kits@kits-gadgets.com

  • Electronic Kits
  • Parts on Sale
  • Parts in StockClick to open the Parts in Stock menu
    • Resistor
    • Potentiometer
    • Capacitor
    • Trimmer Capacitor
    • Transistor
    • Crystal
    • Diode
    • LED
    • Diac
    • Thyristor
    • IC Socket
    • IC - Logic
    • IC - Linear
    • IC - Op-Amp
    • IC - VLSI
    • Relay
    • Motor
    • Lamp
    • Transducer
    • Gear
    • Switch
    • Heatsink
    • Parts Store Inventory
  • Brand New Items
  • Used Items
  • Power Supply
  • Raspberry Pi VaultClick to open the Raspberry Pi Vault menu
    • Demonstration Kit
    • Demonstration Kit - R3
    • The P1 Header Guide
    • BBC BASIC Tutorials
    • Activating the GPIO
    • LED Program
    • Motor Program
    • Solenoid Program
    • Stepper Motor
    • 8 Relay Program
    • GPIO as Input
    • Motors and Sensors Connection Diagram
    • Autonomous Program
    • Infrared Sensor
    • Ultrasonic Sensor
    • Camera Controller
    • PWM Program
    • Robotic Arm
    • STRYDER Robot
    • Demo Kit Program
  • Arduino VaultClick to open the Arduino Vault menu
    • Stepper Motor w/ LED
    • DCMotor
  • NodeMCU ProjectsClick to open the NodeMCU Projects menu
    • Running 8 LEDs
    • 8 LEDs and ULN2803
    • 8 LED Active Modes
    • ON-OFF Switch
    • Switch, Relay and LEDs
    • Motor Drive Interface
    • Connecting to Wi-Fi
    • IR Sensor
  • More GPIOsClick to open the More GPIOs menu
    • Accessing the P5 GPIOs
  • Prototypes
  • Computer Parts
  • Picture GalleryClick to open the Picture Gallery menu
    • Other Prototypes
    • Revived HP Laptop
    • Dismantled Helicopter
    • Dismantled Phone
    • ACER Laptop Repair
    • Revived Laptop
    • Inside of Electric Drill
    • Video Cam Automation
    • My Tours and Travels
  • My Original DesignClick to open the My Original Design menu
    • Handycam Automation
    • Autonomous Robot
  • What's New!Click to open the What's New! menu
    • Article-1
    • Article-2
    • Article-3
    • Article-4
    • Article-5
    • Article-6
    • Article-7
    • Article-8
    • Article-9
    • Article-10
    • Article-11
    • Article-12
    • Article-13
    • Article-14
    • Article-15
    • Article-16
    • Article-17
    • Article-18
    • Article-19
    • Article-20
    • Article-21
    • Article-22
    • Article-23
    • Article-24
    • Article-25
    • Article-26
    • Article-27
    • Article-28
    • Article-29
    • Article-30
    • Article-31
  • Forum
  • Video GalleryClick to open the Video Gallery menu
    • IR Proximity Sensor
    • Robot Vacuum Cleaner
    • Robotic Arm - RPi
    • Raspberry Pi Demo Kit
  • About Us
  • Contact Us

Demonstration Kit - R3


The video is the update to the previous prototype Demonstration Kit (Rev. 2) which is using Raspberry Pi Model B with fewer GPIOs compare to Raspberry Pi Model 2.

The function here is very limited compare to the program I had written in BBC BASIC Programming Language due to the very limited reference materials of Phyton Programming Language. I would say that I cannot easily convert the complex program I made using the BBC BASIC to Phyton without a lot of effort and time. Until now, I am searching for all the Phyton commands needed to write a complex program for Raspberry Pi.

Unfortunately, the BBC BASIC which is ported to Raspbian remains unstable and with incompatibility issues as of March 2020. I tried it with Raspberry Pi Zero W and Model 2 and Model A+ but just gave me some headache and frustration.

Following is the basic program written in Phyton 3.4 to activate the 21 GPIOs:


PHYTON 3.4 


#!/sr/bin/python3

# Programmed by Rolly Estomaguio on April 19, 2020 to test 21 GPIOs of Raspberry Pi Model B.

import RPi.GPIO as GPIO # using RPi.GPIO

from time import sleep

GPIO.setwarnings(False)

GPIO.setmode(GPIO.BCM)

x= 17, 18, 27, 23, 24, 10, 9, 25, 11, 8, 7, 5, 6, 12, 13,19, 16, 26, 20, 21, 14 ,15

GPIO.setup(x,GPIO.OUT)# make pin into an output

while True:
    
     GPIO.output(x, 0)# reset to LOW all GPIO
     sleep (0.1)     
     GPIO.output(17,1)
     sleep (1)
     GPIO.output(17,0)
     sleep (1)
     GPIO.output(18,1)
     sleep (1)
     GPIO.output(18,0)
     sleep (1)
     GPIO.output(27,1)
     sleep (1)
     GPIO.output(27,0)
     sleep (1)
     GPIO.output(23,1)
     sleep (1)
     GPIO.output(23,0)
     sleep (1)
     GPIO.output(24,1)
     sleep (1)
     GPIO.output(24,0)
     sleep (1)
     GPIO.output(10,1)
     sleep (1)
     GPIO.output(10,0)
     sleep (1)
     GPIO.output(9,1)
     sleep (1)
     GPIO.output(9,0)
     sleep (1) 
     GPIO.output(25,1)
     sleep (1)
     GPIO.output(25,0)
     sleep (1)

     GPIO.output(11, 1)
     sleep (1)
     GPIO.output(11,0)
     sleep (1)
     GPIO.output(8, 1)
     sleep (1)
     GPIO.output(8,0)
     sleep (1)
     GPIO.output(7, 1)
     sleep (1)
     GPIO.output(7,0)
     sleep (1)
     GPIO.output(5,1)
     sleep (1)
     GPIO.output(5,0)
     sleep (1)
     GPIO.output(6,1)
     sleep (1)
     GPIO.output(6,0)
     sleep (1)
     GPIO.output(12,1)
     sleep (1)
     GPIO.output(12,0)
     sleep (1)
     GPIO.output(13, 1)
     sleep (1)
     GPIO.output(13,0)
     sleep (1)
     GPIO.output(19,1)
     sleep (1)
     GPIO.output(19,0)
     sleep (1)
     GPIO.output(26,1) # use as HIGH to enable L293
    
     GPIO.output(21,1) # HIGH for counter-clockwise rotation                                                                       
     sleep (0.1)
     GPIO.output(20,0)
     sleep (0)
   
     GPIO.output(26,0)
    
     GPIO.output(21,0)                                                                                                         
     sleep (0.1)
     GPIO.output(20,0)
     sleep (0)
   
     GPIO.output (26,1)
     GPIO.output (20,1) # HIGH to enable solenoid
     sleep (0.1)
     GPIO.output (21,0) # LOW to ennable solenoid
     sleep (0.1)
     GPIO.output (26,0) # reset to LOW to disable solenoid
     sleep (0.1)
    
     GPIO.output (20,0) # reset to LOW to stop solenoid
     sleep (0.1)
    
     GPIO.output (26,1)
     sleep (0.1)
     GPIO.output (14,1) # HIGH to enable motor
     sleep (0.1)
     GPIO.output (15,0) # LOW to enable motor
     sleep (0.1)
     GPIO.output (26,0) # LOW to disable motor
     GPIO.output (14,0)
     sleep (0.1)
     GPIO.output (15,0)
     sleep (0.1)









Copyright 2013 Kits and Gadgets Electronics Inc. All rights reserved.

Web Hosting by Yahoo

Kits and Gadgets Electronics Inc.
Farwaniya, Kuwait 80003
Kuwait

ph: +965 99571844

kits@kits-gadgets.com