Go to advanced search

by OutoftheBOTS
Wed May 23, 2018 9:24 pm
Forum: Automation, sensing and robotics
Topic: How to highlight text on OLED 2.42 SSD1306
Replies: 3
Views: 792

Re: How to highlight text on OLED 2.42 SSD1306

Ok I did have a very quick look at the Luma module and it seems like it is an extension to the Pil module. I didn't find a way of setting the background color of the text and I think the Pil text method always draw text with a transparent background. So what you might be able to do is draw a white r...
by OutoftheBOTS
Mon May 21, 2018 9:15 pm
Forum: Automation, sensing and robotics
Topic: configuration of 2.42OLED, SSD1306, 128x64
Replies: 5
Views: 675

Re: configuration of 2.42OLED, SSD1306, 128x64

Yes I2C will get the job done
by OutoftheBOTS
Sun May 20, 2018 9:08 pm
Forum: Automation, sensing and robotics
Topic: LIS3DH accelerometer reading jumps problem
Replies: 11
Views: 958

Re: LIS3DH accelerometer reading jumps problem

Looks like when the jump occurs there is a one more '1' instead of '0' to the left of the binary value. 0000000001111111 for 127 0000000000111111 for 63 (8G range) or 0000000111111100 for 508 0000000011111100 for 252 (2G range) This is what I expected when you said double the value, it sounded like...
by OutoftheBOTS
Sun May 20, 2018 6:56 am
Forum: Automation, sensing and robotics
Topic: Roboclaw Raspberry Pi 3 USB communication problem
Replies: 3
Views: 479

Re: Roboclaw Raspberry Pi 3 USB communication problem

possibly try pip3 install if your using python3
by OutoftheBOTS
Sat May 19, 2018 5:02 am
Forum: Automation, sensing and robotics
Topic: Roboclaw Raspberry Pi 3 USB communication problem
Replies: 3
Views: 479

Re: Roboclaw Raspberry Pi 3 USB communication problem

First I googled roboclaw to see what the hardware was (best in future to post a link to any hardware your asking for help with), I must say it is a pretty impressive motor controller. Out of interest what r u using it to control?? All your error messages u get seem to relate that it can't find the r...
by OutoftheBOTS
Fri May 18, 2018 5:45 am
Forum: Automation, sensing and robotics
Topic: configuration of 2.42OLED, SSD1306, 128x64
Replies: 5
Views: 675

Re: configuration of 2.42OLED, SSD1306, 128x64

Ok I just looked a bit closer for you. First I need to establish which screen your using is it this 2.42" from Adafruit?? https://www.adafruit.com/product/2719 If it is they have a good tutorial on how the set it up see the needed soldering jumpers to selct the mode you want to use https://learn.ada...
by OutoftheBOTS
Thu May 17, 2018 8:43 pm
Forum: Automation, sensing and robotics
Topic: configuration of 2.42OLED, SSD1306, 128x64
Replies: 5
Views: 675

Re: configuration of 2.42OLED, SSD1306, 128x64

A quick look at the links you posted it looks like this screen can be driven bu either 8 bit parallel or SPI.

In the example blog he uses SPI (i also recommend this) but the picture you posted of your wiring looks different to the pic on his blog of his wiring.
by OutoftheBOTS
Wed May 16, 2018 6:57 am
Forum: Automation, sensing and robotics
Topic: monitoring rotary encoder on fast motor with pigpio - improving performance?
Replies: 24
Views: 2990

Re: monitoring rotary encoder on fast motor with pigpio - improving performance?

@poote I am following your development as it is quite interesting to me to see what you can come up with. PiGraham wrote: ↑ Wed May 16, 2018 4:43 am But the choice is yours. Quite so, I enjoy the challenge. I understand your thirst for the challenge. There is going to be a lot more challenge yet as ...
by OutoftheBOTS
Wed May 16, 2018 6:40 am
Forum: Python
Topic: Python + GPIO + Call Back Of Hidden Layer Loop Problem
Replies: 2
Views: 268

Re: Python + GPIO + Call Back Of Hidden Layer Loop Problem

not 100% sure of exactly what you r trying to do but it looks like when a button is pressed it does 1 thing then when the button is released it does another maybe the code your looking for is something like this last_state1 = True input_state1 = True while True: #Read states of inputs input_state1 =...
by OutoftheBOTS
Mon May 14, 2018 9:00 pm
Forum: Automation, sensing and robotics
Topic: Controlling 5 Belimo damper actuators from an RPi
Replies: 1
Views: 312

Re: Controlling 5 Belimo damper actuators from an RPi

Ok interesting project. First if you need a range 0 -10v output then this is an analog output. Digital is either 0v or 10v with nothing in between. So this means you will need a DAC (digital to analog conveter). You will need to create a digital PMW signal with a duty of between 0 - 100% then the DA...
by OutoftheBOTS
Sat May 05, 2018 9:25 pm
Forum: Python
Topic: Running Two LED Strips (Blinkytapes) at a Time
Replies: 14
Views: 994

Re: Running Two LED Strips (Blinkytapes) at a Time

So it looks like your blinky tapes are now working fine but for some reason the following line of code is never returning True

Code: Select all

if SensorTwo.is_active:
by OutoftheBOTS
Sat May 05, 2018 10:45 am
Forum: Python
Topic: Running Two LED Strips (Blinkytapes) at a Time
Replies: 14
Views: 994

Re: Running Two LED Strips (Blinkytapes) at a Time

Ding ding ding Actually during the main loop the text "Blue team scored!" does not print out when I hit the blue sensor. I know it works hardware wise because it works when running the test script. This means it isn't executing this part of the code and this is the same block of code that updates yo...
by OutoftheBOTS
Fri May 04, 2018 7:51 pm
Forum: Python
Topic: Problems with shaking servo motors
Replies: 4
Views: 779

Re: Problems with shaking servo motors

In most cases if I want to drive servos I will use an external chip to create the PWM signal like the PCA9685. There is lots of manufactures out there making great servo controller boards with this chip.
by OutoftheBOTS
Wed May 02, 2018 8:53 pm
Forum: Python
Topic: Running Two LED Strips (Blinkytapes) at a Time
Replies: 14
Views: 994

Re: Running Two LED Strips (Blinkytapes) at a Time

if this code is being executed when you trip blue sensor print "Point scored for the blue team!" and it is printing to the screen then you know that it isn't a problem with the sensor and it is executing the code for blue scoring. If bt2 is working fine for start() and finish() but not for score() t...
by OutoftheBOTS
Tue May 01, 2018 7:56 pm
Forum: Automation, sensing and robotics
Topic: Ultimate rotary encoder switch decoder
Replies: 18
Views: 25479

Re: Ultimate rotary encoder switch decoder

Here is the easiest way to count quadrature encoders. https://www.youtube.com/watch?v=p4BCFhIuC88&t=447s
by OutoftheBOTS
Tue May 01, 2018 9:26 am
Forum: Automation, sensing and robotics
Topic: YDLidar X4 - Issues with 128000 bps
Replies: 3
Views: 1817

Re: YDLidar X4 - Issues with 128000 bps

If it is possible to connect to your PC using serial to USB then maybe try the same with the RPi and connect it to the USB

Also I do believe serial port on RPi3 is different to serial port on previous models and RPi3 is /dev/ttyS0 or /dev/serial0 and USB serial is /dev/ttyACM0
by OutoftheBOTS
Sat Apr 28, 2018 4:25 am
Forum: Automation, sensing and robotics
Topic: 2 motos turning on it's own
Replies: 35
Views: 1860

Re: 2 motos turning on it's own

If your using a L9110 then you probably don't need a 9v battery as there will be very little voltage drop with the L9110. In fact it is probable that if you use a 9v battery with a L9110 that the motor may get too much voltage and burn out before too long. I was using a 7.4v lipo battery with the L9...
by OutoftheBOTS
Sat Apr 28, 2018 4:19 am
Forum: Python
Topic: Running Two LED Strips (Blinkytapes) at a Time
Replies: 14
Views: 994

Re: Running Two LED Strips (Blinkytapes) at a Time

I just had a little play with your code to optimize it a little (still much more can be done). I of course have not tested this code and there is problably a couple of bugs that may need to be sorted but it should give you some food for thought. #!/usr/bin/python # Vibration sensor target script. Ap...
by OutoftheBOTS
Sat Apr 28, 2018 3:59 am
Forum: Python
Topic: Running Two LED Strips (Blinkytapes) at a Time
Replies: 14
Views: 994

Re: Running Two LED Strips (Blinkytapes) at a Time

Ok I have looked at your code and later might help with a bit of a rewrite to help you out. First thing that I have noticed is your main look doesn't have and time.sleep in it to slow the program from looping too fast. Try first of all putting a time.sleep(0.1) in your loop because it is possible th...
by OutoftheBOTS
Fri Apr 27, 2018 8:42 pm
Forum: Python
Topic: Running Two LED Strips (Blinkytapes) at a Time
Replies: 14
Views: 994

Re: Running Two LED Strips (Blinkytapes) at a Time

I followed the link at their website to the python github and looked at both their BlinkyTape code and their example code. First of all I have used all the different types of RGB led tapes many times before and understand well how they work. Normally I connect the RGB strips directly to the RPi or M...
by OutoftheBOTS
Fri Apr 27, 2018 8:52 am
Forum: Python
Topic: SpiDev documentation - xfer
Replies: 1
Views: 1016

Re: SpiDev documentation - xfer

First you need to understand what SPI is. SPI is a protocol for sending data from 1 chip to another. For example your Raspberry might want to read data from a chip that is on a sensor and this chip uses SPI protocol. There are many different protocols like I2C, UART, HDMI, USB just to mention a few....
by OutoftheBOTS
Fri Apr 27, 2018 8:39 am
Forum: Python
Topic: Running Two LED Strips (Blinkytapes) at a Time
Replies: 14
Views: 994

Re: Running Two LED Strips (Blinkytapes) at a Time

I took a quick look at the code from your first link and it seems that you call connnect() lots of times and it creates an instance of a connection to the serail port each time " serialPorts = glob.glob("/dev/blinkytape1") port = serialPorts[0] " I would suggest that you only call connect once in yo...
by OutoftheBOTS
Thu Apr 26, 2018 8:27 am
Forum: Automation, sensing and robotics
Topic: 2 motos turning on it's own
Replies: 35
Views: 1860

Re: 2 motos turning on it's own

If the L9110 and the RPi are powered by same power source (same battery) then they will already have a common ground and will work witout needing you to connect a common ground but if the L9110 and the RPi are powered by different sources then it won't work without a common ground either way a commo...
by OutoftheBOTS
Mon Apr 23, 2018 9:18 pm
Forum: Automation, sensing and robotics
Topic: 2 motos turning on it's own
Replies: 35
Views: 1860

Re: 2 motos turning on it's own

The max voltage of the L9110 is 12 volts. The main this is to know the max amps:datasheet quote 800ma continuous with max peak fo 2amp. So far with all my using of the L9110 I haven't had a problem with burning out the H-bridge from over powering it running these small motors. It was ages ago I did ...
by OutoftheBOTS
Mon Apr 23, 2018 11:13 am
Forum: Automation, sensing and robotics
Topic: 2 motos turning on it's own
Replies: 35
Views: 1860

Re: 2 motos turning on it's own

simple answer to your problem is to use a battery with a voltage of 9v in theory that should give you about 6v at the motors allowing for the 2.8v dropped across the motor controller . This is indeed a simple answer to your problem and will work. Your problem is that the H-Bridge that your using is...

Go to advanced search