Go to advanced search

by joan
Mon Jan 06, 2020 5:55 pm
Forum: Troubleshooting
Topic: pigpio software PWM jitters when run together with raspivid
Replies: 17
Views: 559

Re: pigpio software PWM jitters when run together with raspivid

Presumably there is a conflict. Have you tried starting pigpio with the PWM clock rather than the PCM clock (or vice versa). See the -t option at http://abyz.me.uk/rpi/pigpio/pigpiod.html If it's not that then perhaps there is a clash with DMA channel usage. I know nothing about raspivid and don't k...
by joan
Sun Jan 05, 2020 7:52 pm
Forum: Beginners
Topic: RGB Led Strip and motion detection?
Replies: 1
Views: 150

Re: RGB Led Strip and motion detection?

What LED strip have you bought? Some are much easier to drive from the Pi (e.g. APA102 based strips are easy).

How do you plan to detect motion? PIR sensor?
by joan
Sun Jan 05, 2020 10:11 am
Forum: Other programming languages
Topic: Perl Controlling Gpio
Replies: 9
Views: 1078

Re: Perl Controlling Gpio

The one which uses my pigpio daemon seems to work. It certainly toggles a GPIO.

https://metacpan.org/pod/RPi::PIGPIO
by joan
Sat Jan 04, 2020 10:00 pm
Forum: Other programming languages
Topic: Perl Controlling Gpio
Replies: 9
Views: 1078

Re: Perl Controlling Gpio

I have no idea, I don't use those PERL modules.
by joan
Fri Jan 03, 2020 2:23 pm
Forum: Beginners
Topic: Slow work with the GPIO
Replies: 5
Views: 291

Re: Slow work with the GPIO

by joan
Thu Jan 02, 2020 4:22 pm
Forum: General discussion
Topic: Newbie here, wondering about connecting LEDs to Raspberry Pi3b+
Replies: 4
Views: 284

Re: Newbie here, wondering about connecting LEDs to Raspberry Pi3b+

Watts = Volts x Amps From a 5V supply you would need 4 amps for 20 watts, from a 3V3 supply 6 amps. The Pi can not provide that much power. You need an external power supply. You will be able to switch the external power supply on and off via a GPIO. To o the switching safely would need some care. W...
by joan
Tue Dec 31, 2019 2:19 pm
Forum: Beginners
Topic: read data from Arduino
Replies: 14
Views: 633

Re: read data from Arduino

Yes. That module should work from 3V3. GPIO 2/3 (SDA/SCL) already have pull-ups to 3V3 fitted on the Pi board. You do not need any other pull-ups if you use the standard I2C bus on GPIO 2/3.
by joan
Tue Dec 31, 2019 11:38 am
Forum: Beginners
Topic: read data from Arduino
Replies: 14
Views: 633

Re: read data from Arduino

Make sure the module you are using does not have its own pull-ups to 5V. It's safest to power I2C modules from 3V3 when possible.
by joan
Tue Dec 31, 2019 9:35 am
Forum: Beginners
Topic: read data from Arduino
Replies: 14
Views: 633

Re: read data from Arduino

I think it unlikely that using your sensor with pull-ups to 5V would have stopped I2C working on the Pi. It would likely eventually damage the GPIO and the Pi but I'd expect correct readings in the meantime.
by joan
Tue Dec 31, 2019 9:03 am
Forum: Beginners
Topic: read data from Arduino
Replies: 14
Views: 633

Re: read data from Arduino

Exposing a Pi GPIO to 5V may eventually kill the GPIO and the Pi. Your Pi - your gamble.
by joan
Mon Dec 30, 2019 6:42 pm
Forum: Troubleshooting
Topic: BCM2835 chip
Replies: 5
Views: 356

Re: BCM2835 chip

What do you mean by find?
by joan
Mon Dec 30, 2019 6:41 pm
Forum: Python
Topic: GPIO zero keeps giving "OutputDeviceBadValue"
Replies: 10
Views: 687

Re: GPIO zero keeps giving "OutputDeviceBadValue"

Constrain AngularServo to be between 45 and 135.
by joan
Mon Dec 30, 2019 3:46 pm
Forum: Beginners
Topic: read data from Arduino
Replies: 14
Views: 633

Re: read data from Arduino

If the Pro Mini is running from 3V3 you can just use the UARTs, i.e. just connect grounds, RX to TX, and TX to RX at Pi and Arduino. If the Pro Mini is 5V you will need a resistor divider on the Arduino TX to Pi RX line.

Then write your software to implement any message passing scheme you fancy.
by joan
Mon Dec 30, 2019 3:38 pm
Forum: General discussion
Topic: RPi 3b Clock pin
Replies: 16
Views: 621

Re: RPi 3b Clock pin

Could you capture a real signal with piscope? If you save the signal in text format it may be possible to interpret the data.

See capture details given just before INSTALLATION in http://abyz.me.uk/rpi/pigpio/piscope.html
by joan
Mon Dec 30, 2019 9:26 am
Forum: Automation, sensing and robotics
Topic: Limit switches and GPIO
Replies: 6
Views: 633

Re: Limit switches and GPIO

Do you need a GPIO connected to the limit switches? Why not just 3V3?
by joan
Mon Dec 30, 2019 8:33 am
Forum: General discussion
Topic: RPi 3b Clock pin
Replies: 16
Views: 621

Re: RPi 3b Clock pin

See if you can capture the signal with piscope.

Add a glitch filter to get rid of the static, something like pigs fg 27 100 if receiving on GPIO 27.
by joan
Sun Dec 29, 2019 8:11 pm
Forum: Python
Topic: multiple i2c sensores
Replies: 5
Views: 673

Re: multiple i2c sensores

Have you added a pull-up resistor to 3V3 to every GPIO you are using for the I2C bus?

Have you tried i2cdetect -y x for each bus x?
by joan
Sun Dec 29, 2019 1:17 pm
Forum: Troubleshooting
Topic: Problem with Servo hat for Raspbeery Pi ( no connected devices)
Replies: 6
Views: 229

Re: Problem with Servo hat for Raspbeery Pi ( no connected devices)

Some of the pins on the expansion header appear to be connected by solder blobs. That might be very damaging to the GPIO and the Pi. hi :) can I fix it somehow? I don't have a hand for soldering :D You and me both. Don't worry, it's still way better than my soldering. I would reheat the solder at t...
by joan
Sun Dec 29, 2019 1:02 pm
Forum: Troubleshooting
Topic: SCL pin on RPi 3 B+ doesn't signal the click!
Replies: 25
Views: 989

Re: SCL pin on RPi 3 B+ doesn't signal the click!

There is no point in doing i2cdetect if SDA and SCL are not in the I2C mode. By switching those GPIO to OUTPUT mode you will stop i2cdetect working. You have set those GPIO to be OUTPUTs in your Python.

Either do the i2cdetect directly after boot or put the GPIO back into I2C mode.
by joan
Sun Dec 29, 2019 12:34 pm
Forum: Troubleshooting
Topic: Problem with Servo hat for Raspbeery Pi ( no connected devices)
Replies: 6
Views: 229

Re: Problem with Servo hat for Raspbeery Pi ( no connected devices)

Some of the pins on the expansion header appear to be connected by solder blobs. That might be very damaging to the GPIO and the Pi.
by joan
Sun Dec 29, 2019 11:23 am
Forum: Other programming languages
Topic: Two servos in perl example.
Replies: 9
Views: 1018

Re: Two servos in perl example.

The obvious solutions for additional hardware PWM on the non-PWM GPIO are RPIO, servoblaster, and pigpio. RPIO would be a non-daemon solution but there does not appear to be a way to use it from PERL. servoblaster and pigpio are both daemon based. However servoblaster is a lot "lighter" than pigpio....
by joan
Sun Dec 29, 2019 11:07 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [HELP] [I2C] Pressure Sensor Code Problem
Replies: 4
Views: 477

Re: [HELP] [I2C] Pressure Sensor Code Problem

You should implement the algorithm used on the Arduino in Python. That means you will have to learn a little Python and a little about the Pi libraries and how they differ from the Arduino. I give an untested version using the pigpio library. To run it you need the pigpio daemon ( sudo pigpiod ). #!...
by joan
Sat Dec 28, 2019 8:47 pm
Forum: Troubleshooting
Topic: Difference between 3.3V pin and normal pin
Replies: 3
Views: 255

Re: Difference between 3.3V pin and normal pin

The 3V3 pin is connected to the 3V3 power rail. A GPIO pin is connected to a GPIO. The GPIO can be set as inputs or outputs. When in output mode a GPIO can only supply a few milliamps of current at 3V3, not enough to power a motor. You should never try to power a motor directly from a GPIO, it may d...

Go to advanced search