Go to advanced search

by moistpie
Wed Apr 27, 2016 11:30 pm
Forum: HATs and other add-ons
Topic: Help getting started with motor controller HAT
Replies: 10
Views: 3371

Re: Help getting started please

Update. I had a go at making a register file and modifying your code as necessary. A lot of it was very similar and I used the datasheet to select the settings, hopefully it'll work... There is one big difference I haven't gotten to the bottom of yet, I think the MinIMU gyro and accelerometer use th...
by moistpie
Wed Apr 27, 2016 4:19 pm
Forum: HATs and other add-ons
Topic: Help getting started with motor controller HAT
Replies: 10
Views: 3371

Re: Help getting started please

Ah I understand now, the file with all the registers in is what I was calling a library. I think I have found the information I need in the datasheet too, please can you check the below example is right before I do them all. Datasheet link https://www.pololu.com/file/download/LSM6DS33.pdf?file_id=0J...
by moistpie
Wed Apr 27, 2016 11:45 am
Forum: HATs and other add-ons
Topic: Help getting started with motor controller HAT
Replies: 10
Views: 3371

Re: Help getting started please

I'm not using a motor controller as such, I am using a H-Bridge and this does not use the I2C pins. I was just providing an example of the address format (sorry if that confused things). Correct me if I'm wrong but I think all the register values are on the data sheet so this shouldn't be too diffic...
by moistpie
Tue Apr 26, 2016 9:18 pm
Forum: Advanced users
Topic: How is 3V GPIO usable?
Replies: 13
Views: 3987

Re: How is 3V GPIO usable?

Hi I'm still a beginner myself but I thought I'd weigh in as I have just found and implemented a solution to my, very similar, problem. The problem being to supply a separate and variable power supply to motors controlled by the pi and be able to control the direction of the motors. For the separate...
by moistpie
Tue Apr 26, 2016 4:31 pm
Forum: HATs and other add-ons
Topic: Help getting started with motor controller HAT
Replies: 10
Views: 3371

Re: Help getting started please

Here is some code for a different IMU; (BerryIMU) https://github.com/mwilliams03/BerryIMU/ Look under the folder python-BerryIMU-gryo-accel-compass for the python code. The math should be the same, you just need to change register and address values to match your IMU. Hi Mark, thanks for chiming in...
by moistpie
Fri Apr 22, 2016 1:28 pm
Forum: HATs and other add-ons
Topic: Help getting started with motor controller HAT
Replies: 10
Views: 3371

Re: Help getting started please

Many thanks Dave! Some helpful info there :) Stealing the idea from a tutorial I found online, I have gone the route of making my own module that does the same job as a motor control HAT (I hope) and doesn't use the I2C pins. So I have Darlington Array chip with the PWM from the Pi on the common rai...
by moistpie
Tue Apr 12, 2016 5:26 pm
Forum: HATs and other add-ons
Topic: Help getting started with motor controller HAT
Replies: 10
Views: 3371

Help getting started with motor controller HAT

Please help if you can, I'm a bit stuck. I want to control up to 3 motors with code written in python that takes variables from sensors (namely accelerometer and gyroscope). The motor controller HAT below will do the PWM for the motors but I can't figure out how to interface the sensors as well (sin...

Go to advanced search