Robot and Crickit HAT © Copyright 2019 by Dr. Elizabeth I. Horvath and Dr. Eva A. Horvath 1.

Slides:



Advertisements
Similar presentations
Teacher/Mentor Institute Using the Cortex Chuck Powell.
Advertisements

JED Microprocessors Pty Ltd Presenting the JED T430 low-cost Projector Controllers Nov 22nd, 2009.
Internet of Things with Intel Edison Getting started with your board Pierre Collet Intel.
1. 2 LabVIEW for FRC Doug Norman National Instruments January 6, 2012.
DCS-942L How do I set up and install my DCS-942L
Overview of New System Beta Team from Wilsonville 1425 Wilsonville Robotics – Code Xero 2550 Oregon City Robotics.
Introduction to the Raspberry Pi ® Saman Amighi 10/2013 ® Raspberry Pi Foundation.
DVG-N5402SP.
BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. BAE Systems C2C SWAT Project Tutorial 1,
RM2C Understanding Connections on the Robot Control Board (RCB).
DWR-113 FAQ’s 3G WiFi Router.
SINGLE BOARD COMPUTERS -KEVIN JOSE. WHY DO WE USE THEM? Good performance at low price GPIO capability to interact with the outside world Small form factor,
Driver Station MVRT 2009 – 2010 Season. Add information Breadboard Classmate PC USB Hub Joysticks Stop Button.
One to One instructions Installing and configuring samba on Ubuntu Linux to enable Linux to share files and documents with Windows XP.
Segway Controller Notes. = connection on top layer of circuit board = connection on bottom layer of circuit board Ground Plane: Areas enclosed by the.
Lexmark Wireless Printer Adaptor Instructions Step 1. For a Mac, go to network preferences/ select built-in-ethernet and click on TCP/IP tab and annotate.
Available at: – Operate the Tumbler using a Jumper Pin Operate the Tumbler using the jumper pin.
Control System and Electrical Assembly Produced by Ed Latimer, Team 476 Ken York, Team 476 Ron Markum, Team
The New FTC Platform (Connecting your legacy hardware)
BBBK Programming Notes Rudra Dutta CSC , Fall, 2013.
BEST Robotic, Inc. easyC Breakout Session By: Guy Chetrit Programming With easyC September 15, Copyright © 2012 BEST Robotics, Inc. All rights reserved.
Dr. John Helferty.  Arduino  Wi-Fi Shield  Relay  H-Bridge  Standard Servos  DC Fans  Impeller  Battery  PCB  Headers.
L ILY P AD T RAINING C ENTENNIAL E LEMENTARY 2012 Material by Linz Craig Revision by Sarah Bloms Additional images by Modkit & Adam Meyer.
DHP Agenda: How to Access Web Interface of the DHP-1320 on Access Point Mode How to Access Web Interface of the DHP-1320 on Router Mode How to Change.
Session 11 Intro to FRC API.
Intro to Raspberry Pi A Southwest Florida Hackerspace Workshop Presented by: Russell Benzing & Eric Schiffli.
Bonus EV3 Programming Lessons By Droids Robotics LEGO MINDSTORMS and Raspberry Pi IR Light controller.
Bonus EV3 Programming Lessons LEGO MINDSTORMS ev3dev and Raspberry Pi IR Light controller.
Mechanical Components and Programming Ken Youssefi Introduction to Engineering – E10 1.
Istituto Tecnico Industriale A.Monaco EURLAB Moving a robot simple example program to control a DC-Motor Next - Press the button (left)
Quick Start Guide ST30/ST32 Series mobile computer.
1 Microcontrollers. 2 Programmers work in the virtual world Machinery works in the physical world Microcontrollers connect the virtual and physical world.
BlueROV Electronics and Controls Documentation
Robotics Grant Agreement No LLP UK-LEONARDO-LMP Project acronym: CLEM Project title: Cloud services for E-Learning in Mechatronics Technology.
Python with Raspberry PI Kit
Having fun with code, using Arduino in a middle school CS classroom
BEST Robotic, Inc. MATLAB/Simulink Team Training
Making a 24hr Timer.
Workshop on Raspberry Pi 3
RASPBERRY PI WORKSHOP.
Arduino Uno – controlling LED strips
simple example program to control a DC-Motor
Implementation of Embedded OS
Computer System Laboratory
Embedded Software Development with Python and the Raspberry Pi
Raspberry Pi Hands-on Seminars
Running your own web server
Mini Robot Chassis Top View
An Arduino Workshop A Microcontroller.
Charlotte Weaver, Bill Mowrey & Huai-Ti Lin
Arduino Development for Beginners
A microcontroller Raspberry Pi 2 Model B V1.1 RPi
WORKSHOP LED CONTROL.
Raspberry Pi in Headless Operation
RASPBERRY PI WORKSHOP.
Lighting LEDs with a RASPBERRY PI
Engineering Innovation Center
fischertechnik® RoboPro Software for Gateway To Technology® RoboPro
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
Introduction to EV3Dev: Setup with Python
Internet-of-Things (IoT)
Laptops and Windows tips
Dayton Metro Library Place photo here Computer Basics December 8, 2018.
RPi 2/3, I2C, Analog Sensor
Raspberry Pi – VNC Server Connection
Passive Infrared Sensor
Python with Raspberry PI Kit
Copyright (c) 2017 by Dr. E. Horvath
Emphasis: Get it working and do stuff!
Setting up a Webcam on a Raspberry Pi
Presentation transcript:

Robot and Crickit HAT © Copyright 2019 by Dr. Elizabeth I. Horvath and Dr. Eva A. Horvath 1

Mini Robot Chassis Top View Use the extra hex standoff screw pillars as shown here. 2

Mini Robot Chassis Front View Use the extra hex standoff screw pillars as shown here. 3

Mini Robot Chassis Rear View 4

Mini Robot Chassis Top View Portable USB High Capacity Power Bank; at least 2000mAh 5

Mini Robot Chassis Top View Battery Pack 6

CRICKIT HAT 4 x Analog or Digital Servo control, with precision 16-bit timers 2 x Bi-directional brushed DC motor control, 1 Amp current limited each, with 8- bit PWM speed control (or one stepper) 4 x High current "Darlington" 500mA drive outputs with kick-back diode protection. For solenoids, relays, large LEDs, or one uni-polar stepper 4 x Capacitive touch input sensors with alligator-pads 8 x Signal pins, can be used as digital in/out or analog inputs 7

Image from https://www.adafruit.com Crickit HAT Image from https://www.adafruit.com 8

Connecting CRICKIT HAT to Motor Use four male/male jumper wires to connect the motors to the MOTORS screw block on the CRICKIT HAT. Starting from the side of the CRICKIT HAT on the upper right hand side. Put an orange wire for the VCC for the right motor (labeled 1) and put a brown wire (labeled 1) for the GND for the right motor. Skip the GND. Put a black wire for GND for the left motor (labeled 2) and put a red wire for VCC for the left motor (labeled 2). Image from https://www.adafruit.com 9

Mini Robot Chassis Power Setup Raspberry Pi is located on top, with battery pack under the Raspberry Pi case. Additional duct tape was used to secure the components. You can run the Raspberry Pi, the CRICKIT HAT, and the motors for the robot from 4 AA batteries without the Power Bank. If you have a Power Bank or are connecting to the adapter, plug in the main power supply before connecting the AA battery pack. 10

Installing the CRICKIT HAT Software pi@raspberrypi:~ $ sudo pip3 install RPI.GPIO adafruit-blinka pi@raspberrypi:~ $ sudo pip3 install RPI.GPIO adafruit-circuitpython-cricket pi@raspberrypi:~ $ sudo raspi-config Arrow down to Interfacing Options Tab to Select. Click on Select Arrow down to I2C. Enable I2C. Or, go to the Menu -> Raspberry Pi Configuration -> Interfaces -> Enable I2C Terminal sudo reboot Install I2C tools sudo apt-get install -y python-smbus sudo apt-get install -y i2c-tools Scan for I2C to see that the Crickit HAT is found with i2cdetect -y 1 If 49 is not seen, connect the battery pack. Press the Reset button to the right of the red LED. The LED will now be green. 11

Controlling DC Motors with the CRICKIT HAT #make two variables for the motors to make code shorter to type motor_1 = crickit.dc_motor_1 motor_2 = crickit.dc_motor_2 motor_1.throttle = 0 # right motor stopped motor_2.throttle = 0 # left motor stopped time.sleep(1) motor_1.throttle = -0.5 # right motor half speed backward motor_2.throttle = 0 # left motor stopped motor_1.throttle = 0.5 # right motor half speed foreward motor_2.throttle = -0.5 # left motor half speed backward motor_1.throttle = 0 # right motor stopped motor_2.throttle = 0.5 # left motor half speed foreward 12

Modifying the CRICKIT HAT Code pi@raspberrypi:~ $ cd /usr/local/lib/python3.5/dist-packages pi@raspberrypi:/usr/local/lib/python3.5/dist-packages $ sudo cp adafruit_crickit.py adafruit_crickit.py.original pi@raspberrypi:/usr/local/lib/python3.5/dist-packages $ sudo chmod a+rwx adafruit_crickit.py Go to IDLE and edit the adafruit_crickit.py file and change to motor.py to motor2.py. pi@raspberrypi:/usr/local/lib/python3.5/dist-packages $ cd adafruit_motor pi@raspberrypi:/usr/local/lib/python3.5/dist-packages/adafruit_motor $ sudo cp motor.py motor2.py pi@raspberrypi:/usr/local/lib/python3.5/dist-packages/adafruit_motor $ sudo chmod a+rwx motor2.py Go to IDLE and edit motor2.py 13

Headless Operation Connecting to a Pi that is not connected to a monitor, keyboard, or mouse. Menu -> Raspberry Pi Configuration Change your password from raspberry! Interfaces -> Enable ssh Reboot Connect to your wireless access point sudo cp /etc/wpa_supplicant/wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant.conf.backup Check the /etc/wpa_supplicant/wpa_supplicant.conf file. This will have your association information. The last network is the default network with which you will be associated when you connect in headless operation. 14

Headless Operation Install putty on Windows or use Linux. ssh pi@your_ip_address Create a DHCP reservation on your wireless device for your Raspberry Pi, so that it will receive the same IP address based upon the HWAddr (MAC address) for wlan0. You may need to configure this file: sudo nano /etc/dhcpcd.conf 15