Go to advanced search

by OutoftheBOTS
Tue Jan 01, 2019 8:07 am
Forum: Python
Topic: 256 colors mode.
Replies: 13
Views: 730

Re: 256 colors mode.

Can you please post a link to the screen that your using. I use all sorts of little SPI screens all the time for a number of different project and drive then with lots of different processor from RPi to STM32 to ESP32 and you should have any sort of problem with getting high enough frame rares on su...
by OutoftheBOTS
Mon Dec 31, 2018 9:05 pm
Forum: Python
Topic: 256 colors mode.
Replies: 13
Views: 730

Re: 256 colors mode.

I am a little confused upon the what colour modes u r starting from and what colour modes your converting to. Most of these little SPI screens can be run in either 16bit colour(recommended) or 18bit colour(a pain in the butt) 16bit colour RGB565 (5 bits of red, 6 bits of green and 5 bits of blue) th...
by OutoftheBOTS
Wed Dec 26, 2018 9:52 am
Forum: Python
Topic: Pass variable script problem
Replies: 3
Views: 293

Re: Pass variable script problem

well when u import script1 then it imports script2 so it runs twice. Just simple remove import script2 from script1
by OutoftheBOTS
Thu Dec 20, 2018 7:46 am
Forum: Automation, sensing and robotics
Topic: Need help in converting Arduino coding to Python for RPi
Replies: 5
Views: 1714

Re: Need help in converting Arduino coding to Python for RPi

My code can also be used with interrupts (this is how the ardunio guys usually do it on which I based my code on) If you are trying to read encoders with 2000 counts/revolution and it is spins at any sort of speed the counts will come faster than the RPi can count and it will miss counts. The RPi ru...
by OutoftheBOTS
Wed Dec 19, 2018 11:16 am
Forum: Automation, sensing and robotics
Topic: Need help in converting Arduino coding to Python for RPi
Replies: 5
Views: 1714

Re: Need help in converting Arduino coding to Python for RPi

The ardunio code you posted isn't the normal code used by most ardunio uses fro encoder counter. Here's video I made explaining how to read a encoder https://www.youtube.com/watch?v=p4BCFhIuC88&t=191s at about 8mins you will see the python code that runs on the RPi to count the encoders but earlier ...
by OutoftheBOTS
Tue Dec 18, 2018 8:42 pm
Forum: Automation, sensing and robotics
Topic: Connecting a 2.4GHz receiver to a Pi
Replies: 8
Views: 2398

Re: Connecting a 2.4GHz receiver to a Pi

OK there is a number of protocols (standards for speaking between 2 chips) for serial communication where UART (Universal Asynchronous Receiver/Transmitter.) is 1 type. In this UART protocol many things can be configured like speed of communication, half duplex/full duplex and a number of other thin...
by OutoftheBOTS
Sun Dec 16, 2018 10:09 pm
Forum: Automation, sensing and robotics
Topic: Connecting a 2.4GHz receiver to a Pi
Replies: 8
Views: 2398

Re: Connecting a 2.4GHz receiver to a Pi

The RPi has separate RX(receive) and TX(transmit) pins (this is normal), this is known as full duplex UART but the I-bus protocol uses half duplex UART where the receive and transmit is done on the same pin (i-bus pin). I am not sure myself why they have been putting a diode and resistor between the...
by OutoftheBOTS
Sat Dec 15, 2018 11:43 pm
Forum: Automation, sensing and robotics
Topic: Connecting a 2.4GHz receiver to a Pi
Replies: 8
Views: 2398

Re: Connecting a 2.4GHz receiver to a Pi

I am currently researching doing something similar, using the next generation transmitter https://www.aliexpress.com/item/Original-Flysky-FS-i6X-10CH-2-4GHz-AFHDS-2A-RC-Transmitter-FS-iA6B-FS-iA10B-FS/32850165315.html with either the X6B receiver or more likely the Flit 10 reciever see https://www.a...
by OutoftheBOTS
Fri Dec 14, 2018 9:02 pm
Forum: Automation, sensing and robotics
Topic: Rotary Encoder Count per Revolution missing some count
Replies: 14
Views: 997

Re: Rotary Encoder Count per Revolution missing some count

First the video linked does describe in details how that method works to count encoders. Second as for binary operations here is a good tutorial on using them in python https://www.tutorialspoint.com/python/bitwise_operators_example.htm Third if you want to find a solution to your problem you first ...
by OutoftheBOTS
Thu Dec 13, 2018 8:29 pm
Forum: Automation, sensing and robotics
Topic: Rotary Encoder Count per Revolution missing some count
Replies: 14
Views: 997

Re: Rotary Encoder Count per Revolution missing some count

A quick look at your code it appears to be correct. I did notice that your turning your turning your binary numbers (gpio pin states) into strings then using a dictionary to look up whether to increment or decrement the count. This is a very slow and inefficient way of doing it. If you want to join ...
by OutoftheBOTS
Thu Dec 13, 2018 11:49 am
Forum: Automation, sensing and robotics
Topic: ADC sample rate (ADS1115)
Replies: 3
Views: 1085

Re: ADC sample rate (ADS1115)

I have use an ADS1115 ADC many times. it is a really nice ADC with programmable gain and high resolution ADC. The ADC it's self is very fast to make ADC conversions the problem will be is in the communication speed between the ADS1115 and the RPi as it uses I2C which is 1 of the slowest forms on com...
by OutoftheBOTS
Thu Dec 13, 2018 11:40 am
Forum: Automation, sensing and robotics
Topic: Rotary Encoder Count per Revolution missing some count
Replies: 14
Views: 997

Re: Rotary Encoder Count per Revolution missing some count

This is a common problem when using RPi to do time critical tasks. Your program runs inside an OS (operating system) which means your program doesn't have full control over the CPU but rather it only uses the CPU when the OS says it is ok to do so. The OS takes care of a lot stuff in the back ground...
by OutoftheBOTS
Sat Dec 08, 2018 12:03 pm
Forum: Automation, sensing and robotics
Topic: HELP - Stewart Platform
Replies: 3
Views: 488

Re: HELP - Stewart Platform

Here is a great video made by servo city the seller you listed and it explains all the different options https://www.youtube.com/watch?v=L5tx64G1ilQ U have linked the middle type of actuator where it has feed back wires but not the circuits that create the control loop based upon the feed back. It y...
by OutoftheBOTS
Sun Dec 02, 2018 9:19 pm
Forum: Python
Topic: analog value detection in RPi.GPIO vs gpiozero
Replies: 2
Views: 490

Re: analog value detection in RPi.GPIO vs gpiozero

Ok I have just looked at his blog and he writes his own software spi fuctions. The RPi has it's own hardware spi and the RPi already has a python library to use them. This is a good place to read first to start to understand it all https://learn.sparkfun.com/tutorials/python-programming-tutorial-get...
by OutoftheBOTS
Sun Dec 02, 2018 4:44 am
Forum: Python
Topic: How to send this infrared code?
Replies: 2
Views: 569

Re: How to send this infrared code?

It is a little more difficult to do this RPi because it requires very precise timings but RPi isn't real time as the operating system interrupts things and can delay them slightly. There is a couple of work arounds. 1 of these work arounds is the pigpio libiary that uses DMA to create real time even...
by OutoftheBOTS
Wed Nov 28, 2018 8:43 am
Forum: Python
Topic: Display simple image on GPIO screen
Replies: 12
Views: 1343

Re: Display simple image on GPIO screen

XT2046 is a touch chip to read the touch pad on the front of the screen.

You will need to know what screen you have to know what code you need. Please post a link to your screen
by OutoftheBOTS
Tue Nov 27, 2018 8:14 am
Forum: Automation, sensing and robotics
Topic: Monitor temperature of different rooms
Replies: 6
Views: 2632

Re: Monitor temperature of different rooms

This type of setup of having number of sensors spread around and then all connected/networked together is quite often referred to as IOT The easiest and most common way to do this is with a ESP8266 connected to each sensor then sending the data back to your RPi wirelessly via MQTT Google it for a go...
by OutoftheBOTS
Mon Nov 26, 2018 10:01 am
Forum: Automation, sensing and robotics
Topic: Getting a stepper working with n928n
Replies: 3
Views: 1108

Re: Getting a stepper working with n928n

Your sleep is very short means it is stepping very very fast. The stepper motor can't go from stand still to rotating at speed instantly. Try having a time.sleep(0.1) and see if it spins
by OutoftheBOTS
Sun Nov 18, 2018 8:11 pm
Forum: Automation, sensing and robotics
Topic: MLX90640 & I2C on RPi 3
Replies: 1
Views: 1518

Re: MLX90640 & I2C on RPi 3

If you look up the I2C protocol you will find a data exchange involves sending the slave address of the I2C device then the register address within the I2C device you wish to read or write too then there is the data exchange.

data = read_i2c_block_data(i2c_addr, register, length)
by OutoftheBOTS
Sun Nov 18, 2018 4:39 am
Forum: Automation, sensing and robotics
Topic: Buffer of ADC overflows?
Replies: 6
Views: 2023

Re: Buffer of ADC overflows?

Instead of using the mean(average) of the ADC readings it is usually better to use the median see this video for better explanation https://youtu.be/H51OzQl3BC8
by OutoftheBOTS
Sat Nov 17, 2018 6:15 am
Forum: Automation, sensing and robotics
Topic: Buffer of ADC overflows?
Replies: 6
Views: 2023

Re: Buffer of ADC overflows?

If there isn't anything attached to the ADC pins then it should read zero or very very close to it :)
by OutoftheBOTS
Sat Nov 17, 2018 6:11 am
Forum: Automation, sensing and robotics
Topic: DRV8825 stops running
Replies: 5
Views: 1870

Re: DRV8825 stops running

WOW :shock:

I am surprised that separate power supplies with diode on relay and caps on DRV that it is still spiking it
by OutoftheBOTS
Thu Nov 15, 2018 11:24 pm
Forum: Automation, sensing and robotics
Topic: Buffer of ADC overflows?
Replies: 6
Views: 2023

Re: Buffer of ADC overflows?

It is the software your using. The AD1115 doesn't have a buffer it just has constally reads and stores the lastest conversion in its register. The software your using has a thread that is started when you call the function run() that reads the ADS1115 then stores the data in a buffer then when you c...
by OutoftheBOTS
Thu Nov 15, 2018 3:31 am
Forum: Automation, sensing and robotics
Topic: 17 Rotary encoders in a matrix?
Replies: 4
Views: 1245

Re: 17 Rotary encoders in a matrix?

U can buy rotary encoders that have hardware debounce on the encoder see https://www.aliexpress.com/item/10PCS-LOT-Rotary-Encoder-Module-for-Arduino-Brick-Sensor-Development-Round-Audio-Rotating-Potentiometer-Knob-Cap/32951586790.html?ws_ab_test=searchweb0_0,searchweb201602_4_10065_10068_10130_10547...
by OutoftheBOTS
Thu Nov 08, 2018 8:25 pm
Forum: Python
Topic: Asking for some advice for a beginner: Asking for some advice : control 6 (stepper) motors.
Replies: 2
Views: 231

Re: Asking for some advice for a beginner: Asking for some advice : control 6 (stepper) motors.

The last link you posted will give you much better performace. First before you can go any further you need to pick your motors before you can pick the driver to drive them. You will need to know how much torque you need and how much accuracy you need. If your stepper motor doesn't have enough torqu...

Go to advanced search