David Cotterill-Drew Robotonics
-
Robotonics
- Ilkeston. Derbyshire. UK.
- Sign in to view email
- http://www.roboshopz.com
View MakeBlock_BT3.ino
/************************************************************************* | |
* File Name : MakeBlock_BT3.ino | |
* Author : David Cotterill-Drew | |
* Updated : 19/04/2017 | |
* Version : V3.0 | |
* Date : 19/04/2017 | |
* Description : Program to be used with Orion controller/Uno | |
* License : Open Source | |
* Copyright (C) 2017 RoboTonics. | |
* https://r0b0t.wordpress.com/ |
View MakeBlock_BT2.py
#-------------------------------------------------- | |
# Python program to interact with and | |
# control a MakeBlock Robot Forklift. | |
# Author: David Cotterill-Drew 2017 | |
# Email: roboshopz@gmail.com | |
#-------------------------------------------------- | |
# Imports | |
#-------------------------------------------------- | |
from bluepy.btle import * | |
from Tkinter import * |
View MakeBlock_BT2.ino
/************************************************************************* | |
* File Name : MakeBlock_BT2.ino | |
* Author : David Cotterill-Drew | |
* Updated : 18/04/2017 | |
* Version : V2.0 | |
* Date : 18/04/2017 | |
* Description : Program to be used with Mbot | |
BT.py to control robot via bluetooth. | |
* License : Open Source | |
* Copyright (C) 2016 RoboTonics. |
View MakeBlock_ForkLift.ino
#include "MeOrion.h" | |
#include <SoftwareSerial.h> | |
MeInfraredReceiver infraredReceiverDecode(PORT_6); | |
MeDCMotor MotorL(M1); | |
MeDCMotor MotorR(M2); | |
MeDCMotor Holder(PORT_1); | |
MeDCMotor Hand(PORT_2); | |
int distance=0; |
View BBC_MOTOR1.py
from microbit import * | |
m1 = pin13 | |
m2 = pin14 | |
m3 = pin15 | |
m4 = pin16 | |
def right(): | |
m1.write_digital(1) | |
m2.write_digital(0) |
View BBC_LCD2.py
from microbit import * | |
# pin connections | |
rs = pin0 | |
enable = pin1 | |
datapins = [pin8, pin12, pin2, pin13] | |
# commands | |
LCD_CLEARDISPLAY = 0x01 | |
LCD_RETURNHOME = 0x02 |
View BBC_LCD.py
from microbit import * | |
# pin connections | |
rs = pin0 | |
enable = pin1 | |
datapins = [pin8, pin12, pin2, pin13] | |
button1 = pin5 | |
# commands | |
LCD_CLEARDISPLAY = 0x01 | |
LCD_RETURNHOME = 0x02 |
View makeblock_bluetooth.py
#-------------------------------------------------- | |
# Python program to interact with and | |
# control a MakeBlock Robot. | |
# Author: David Cotterill-Drew 2016 | |
# Email: roboshopz@gmail.com | |
#-------------------------------------------------- | |
# Imports | |
#-------------------------------------------------- | |
from bluepy.btle import * |
View makeblock_bluetooth.ino
#include <MeOrion.h> | |
#include <Arduino.h> | |
#include <SoftwareSerial.h> | |
#include <Wire.h> | |
#include "MatrixGraphics.h" | |
MeBluetooth bluetooth(PORT_5); | |
MeDCMotor MotorL(M1); | |
MeDCMotor MotorR(M2); |
View makeblock_bluetooth.py
from Tkinter import * | |
import Tkinter as tk | |
from PIL import Image, ImageTk | |
import os | |
root = tk.Tk() | |
frame = Frame(root,width=300,height=800) | |
frame.grid(row=0, column=0, padx=5, pady=5) | |
framespeed = Frame(root,width=300,height=800) | |
framespeed.grid(row=2, column=0, padx=5, pady=5) | |
framearm = Frame(root,width=300,height=800) |
NewerOlder