This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************************************************* | |
* 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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-------------------------------------------------- | |
# Python program to interact with and | |
# control a MakeBlock Robot Forklift. | |
# Author: David Cotterill-Drew 2017 | |
# Email: [email protected] | |
#-------------------------------------------------- | |
# Imports | |
#-------------------------------------------------- | |
from bluepy.btle import * | |
from Tkinter import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************************************************* | |
* 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from microbit import * | |
m1 = pin13 | |
m2 = pin14 | |
m3 = pin15 | |
m4 = pin16 | |
def right(): | |
m1.write_digital(1) | |
m2.write_digital(0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from microbit import * | |
# pin connections | |
rs = pin0 | |
enable = pin1 | |
datapins = [pin8, pin12, pin2, pin13] | |
# commands | |
LCD_CLEARDISPLAY = 0x01 | |
LCD_RETURNHOME = 0x02 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from microbit import * | |
# pin connections | |
rs = pin0 | |
enable = pin1 | |
datapins = [pin8, pin12, pin2, pin13] | |
button1 = pin5 | |
# commands | |
LCD_CLEARDISPLAY = 0x01 | |
LCD_RETURNHOME = 0x02 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-------------------------------------------------- | |
# Python program to interact with and | |
# control a MakeBlock Robot. | |
# Author: David Cotterill-Drew 2016 | |
# Email: [email protected] | |
#-------------------------------------------------- | |
# Imports | |
#-------------------------------------------------- | |
from bluepy.btle import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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