# $200US for someone to get my ODRIVE running with hover board motors

**URL:** <https://discourse.odriverobotics.com/t/200us-for-someone-to-get-my-odrive-running-with-hover-board-motors/1024>\
**Category:** Support\
**Created:** [August 18, 2018, 7:47am UTC](https://discourse.odriverobotics.com/t/200us-for-someone-to-get-my-odrive-running-with-hover-board-motors/1024 "2018-08-18T07:47:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![trashpilot](https://discourse.odriverobotics.com/letter_avatar_proxy/v4/letter/t/ea5d25/32.png) [@trashpilot](https://discourse.odriverobotics.com/u/trashpilot)\
**Post date:** [August 18, 2018, 7:47am UTC](https://discourse.odriverobotics.com/t/200us-for-someone-to-get-my-odrive-running-with-hover-board-motors/1024/1 "2018-08-18T07:47:52Z")

</div>

Guys Im running short of time on this and need someones assistance.

So i have a 48V O’drive, a hover board battery and two hub wheel motors with hall sensors, a raspberry pi & camera

My end game is to be able to control this robot platform with remote control from an open source mobile app or web page over wifi.

let me know if anyone is interested… Im expecting someone has already done exactly this so its a quick job of sending your code to PI, configuring O’drive and giving it a whirl. i will provide team viewer, a mac with usb connecting with odrive tool and SSH to Pi… i’m not fussed about programming language, thats up to you.

Let me know if you’re interested.

---

<div class="post-metadata">

**Author:** ![madcowswe](https://discourse.odriverobotics.com/user_avatar/discourse.odriverobotics.com/madcowswe/32/1138_2.png) [@madcowswe](https://discourse.odriverobotics.com/u/madcowswe)\
**Post date:** [August 25, 2018, 5:15am UTC](https://discourse.odriverobotics.com/t/200us-for-someone-to-get-my-odrive-running-with-hover-board-motors/1024/2 "2018-08-25T05:15:39Z")

</div>

Hit me up on the [ODrive Discord](https://discord.gg/J9bG3dH).

---

<div class="post-metadata">

**Author:** ![trashpilot](https://discourse.odriverobotics.com/letter_avatar_proxy/v4/letter/t/ea5d25/32.png) [@trashpilot](https://discourse.odriverobotics.com/u/trashpilot)\
**Post date:** [September 15, 2018, 12:46am UTC](https://discourse.odriverobotics.com/t/200us-for-someone-to-get-my-odrive-running-with-hover-board-motors/1024/3 "2018-09-15T00:46:25Z")

</div>

Hi again odrive overlord.  
Happy to say i have my odrive 3.5 48v and 2 hoverboards powering up beeping, doing calibration checks.

Im trying to achieve something simple as it seems small steps are more likely to get me results. So about 1000 years ago in the apple II era there was a program called logo… you used it to move a little turtle around the screen… im wondering if there is an easy way to send commands to my odrive in a similar fashion so i can then use dead reckoning to tell my robot to go say  
fwd 50  
right 90  
fwd 200  
left 50 etc.

Whats the best way to achieve this. I have PI or Arduino to control… ultimately i want to connect PI Camera so i can view where device is at will so pi would be preferred. Anyone out there have a script or some code i can drop in ?

---

<div class="post-metadata">

**Author:** ![trashpilot](https://discourse.odriverobotics.com/letter_avatar_proxy/v4/letter/t/ea5d25/32.png) [@trashpilot](https://discourse.odriverobotics.com/u/trashpilot)\
**Post date:** [September 24, 2018, 5:50am UTC](https://discourse.odriverobotics.com/t/200us-for-someone-to-get-my-odrive-running-with-hover-board-motors/1024/4 "2018-09-24T05:50:11Z")

</div>

Thanks again… I have some robot code which came off a remote control car which also had sonar and video, open source code is run on a raspberry PI. it has a simple app for android which allows you to control robot with remote control and view the camera as you move it. i want to replace the motor controller and associated code so that it can be replaced with the ODrive…

like all of these robots it has three py programs, one for avoidance, one to follow a line, the final one which allows remote control of the robot with webcam view… i figure the quickest is one of the simplest so i have attached…

#! /usr/bin/python

# -_- coding:utf-8 -_-

import RPi.GPIO as GPIO  
import time

def FollowLine():  
if (GPIO.input(IR\_L) == False)&(GPIO.input(IR\_R) == False):#黑线为高，地面为低  
Motor\_Forward()  
return  
elif (GPIO.input(IR\_L) == False)&(GPIO.input(IR\_R) == True):  
Motor\_TurnRight()  
return  
elif (GPIO.input(IR\_L) == True)&(GPIO.input(IR\_R) == False):  
Motor\_TurnLeft()  
return  
elif (GPIO.input(IR\_L) == True)&(GPIO.input(IR\_R) == True):#两侧都碰到黑线  
Motor\_Stop()  
return

def Motor\_Forward():  
print ‘motor forward’  
GPIO.output(ENA,True)  
GPIO.output(ENB,True)  
GPIO.output(IN1,True)  
GPIO.output(IN2,False)  
GPIO.output(IN3,True)  
GPIO.output(IN4,False)  
def Motor\_Backward():  
print ‘motor\_backward’  
GPIO.output(ENA,True)  
GPIO.output(ENB,True)  
GPIO.output(IN1,False)  
GPIO.output(IN2,True)  
GPIO.output(IN3,False)  
GPIO.output(IN4,True)  
def Motor\_TurnLeft():  
print ‘motor\_turnleft’  
GPIO.output(ENA,True)  
GPIO.output(ENB,True)  
GPIO.output(IN1,True)  
GPIO.output(IN2,False)  
GPIO.output(IN3,False)  
GPIO.output(IN4,True)  
def Motor\_TurnRight():  
print ‘motor\_turnright’  
GPIO.output(ENA,True)  
GPIO.output(ENB,True)  
GPIO.output(IN1,False)  
GPIO.output(IN2,True)  
GPIO.output(IN3,True)  
GPIO.output(IN4,False)  
def Motor\_Stop():  
print ‘motor\_stop’  
GPIO.output(ENA,False)  
GPIO.output(ENB,False)  
GPIO.output(IN1,False)  
GPIO.output(IN2,False)  
GPIO.output(IN3,False)  
GPIO.output(IN4,False)

#管脚类型设置  
GPIO.setmode(GPIO.BCM)  
GPIO.setwarnings(False)  
########电机驱动接口定义#################  
ENA = 13 #//L298使能A  
ENB = 20 #//L298使能B  
IN1 = 19 #//电机接口1  
IN2 = 16 #//电机接口2  
IN3 = 21 #//电机接口3  
IN4 = 26 #//电机接口4  
########红外传感器接口定义#################

IR\_R = 18 #小车右侧巡线红外  
IR\_L = 27 #小车左侧巡线红外

#########电机初始化为LOW##########  
GPIO.setup(ENA,GPIO.OUT,initial=GPIO.LOW)  
GPIO.setup(IN1,GPIO.OUT,initial=GPIO.LOW)  
GPIO.setup(IN2,GPIO.OUT,initial=GPIO.LOW)  
GPIO.setup(ENB,GPIO.OUT,initial=GPIO.LOW)  
GPIO.setup(IN3,GPIO.OUT,initial=GPIO.LOW)  
GPIO.setup(IN4,GPIO.OUT,initial=GPIO.LOW)  
#########红外初始化为输入，并内部拉高#########

GPIO.setup(IR\_R,GPIO.IN,pull\_up\_down=GPIO.PUD\_UP)  
GPIO.setup(IR\_L,GPIO.IN,pull\_up\_down=GPIO.PUD\_UP)

time.sleep(2)  
try:  
while True:  
FollowLine()  
time.sleep(0.1)  
except KeyboardInterrupt:  
GPIO.cleanup()

how difficult is it to get this to a base case working code for odrive and hoverboard wheels ?
