Go to advanced search

by joan
Sun Jul 22, 2018 8:45 pm
Forum: Français
Topic: Servo Moteur
Replies: 1
Views: 40

Re: Servo Moteur

ChangeDutyCycle
by joan
Fri Jul 20, 2018 5:30 pm
Forum: Automation, sensing and robotics
Topic: Real time high speed data adquisition
Replies: 3
Views: 114

Re: Real time high speed data adquisition

I suggest having a look at viewtopic.php?t=71089
by joan
Thu Jul 19, 2018 8:15 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Issues accessing GPIO register with single bytes
Replies: 7
Views: 265

Re: Issues accessing GPIO register with single bytes

The set and clear registers are documented. They are designed to avoid the very situation you are complaining about.
by joan
Wed Jul 18, 2018 3:30 pm
Forum: Troubleshooting
Topic: Raspberry pi GPIO Boolean doesn't work
Replies: 1
Views: 41

Re: Raspberry pi GPIO Boolean doesn't work

We have no idea how the button is connected to the Pi. The most likely explanation is an incorrect connection. We need a clear photo or photos showing the connections.
by joan
Tue Jul 17, 2018 8:13 am
Forum: Beginners
Topic: Problem with using L298n
Replies: 2
Views: 85

Re: Problem with using L298n

I think this is a common problem. Motors are not identical, neither are motor drivers and any gearing being used on the left and right. Neither will the wheels be identical in size. If you use PWM to control the speed you could use a different duty cycle on the left and right sides to compensate for...
by joan
Mon Jul 16, 2018 11:28 am
Forum: Advanced users
Topic: What would the max frequency of a C program be?
Replies: 4
Views: 202

Re: What would the max frequency of a C program be?

Which I/O?
  • SD card
  • USB
  • Ethernet
  • HDMI
  • Serial
  • I2C
  • SPI
  • GPIO
by joan
Mon Jul 16, 2018 7:03 am
Forum: Automation, sensing and robotics
Topic: 16-channel PWM & Servo driver and pi3
Replies: 3
Views: 149

Re: 16-channel PWM & Servo driver and pi3

You don't need the PWM driver on the Pi. pigpio and others can provide suitable servo pulses on all spare GPIO. http://abyz.me.uk/rpi/pigpio/index.html However the module does simplify the wiring and if you want to use it there are several software modules available, e.g. http://abyz.me.uk/rpi/pigpi...
by joan
Mon Jul 16, 2018 6:58 am
Forum: Advanced users
Topic: PWM hardware for dimming LCD
Replies: 3
Views: 163

Re: PWM hardware for dimming LCD

The HW PWM and 3.5 mm audio jack share the same hardware and cannot both operate at the same time. So if the game generates audio on the jack, this is the cause of screen flickering. That sounds the likely problem. I suggest using http://abyz.me.uk/rpi/pigpio/cif.html#gpioPWM rather than gpioHardwa...
by joan
Sun Jul 15, 2018 9:32 pm
Forum: Python
Topic: GPIO Inputs are both High and Low at once
Replies: 3
Views: 165

Re: GPIO Inputs are both High and Low at once

I suggest you print the value of r and c in the tmp == 1 and the tmp == 0 blocks. That will indicate that it is not the same time frame. As a matter of style I would use else rather than elif tmp == 0.
by joan
Sun Jul 15, 2018 9:14 pm
Forum: Android
Topic: android app for raspberry pi
Replies: 8
Views: 290

Re: android app for raspberry pi

The pigpio Python module should run under Android (at least it does on my Android phone with QPython3). http://abyz.me.uk/rpi/pigpio/python.html It does for me too under Pydroid3 iirc. As does gpiozero to make it easier for the beginner. I downloaded QPython3 from Google Play and ran the following ...
by joan
Sun Jul 15, 2018 8:49 pm
Forum: Android
Topic: android app for raspberry pi
Replies: 8
Views: 290

Re: android app for raspberry pi

The pigpio Python module should run under Android (at least it does on my Android phone with QPython3).

http://abyz.me.uk/rpi/pigpio/python.html
by joan
Fri Jul 13, 2018 3:38 pm
Forum: General discussion
Topic: Confusing about the hardware and I2C connection on raspberry pi 3
Replies: 10
Views: 280

Re: Confusing about the hardware and I2C connection on raspberry pi 3

You should not expose the Pi GPIO to more than 3.3V. If your I2C device works with 3V3 it should be safe to use as it is unlikely to set SDA to more than 3.3V. If your I2C device needs 5V you need to check to see if it is safe. If the I2C device does not have its own pull-ups installed it will proba...
by joan
Thu Jul 12, 2018 3:36 pm
Forum: Advanced users
Topic: Testing GPIO pins
Replies: 3
Views: 191

Re: Testing GPIO pins

Possibly.

Remove all connections from the expansion header and run wiringPi's pintest utility or pigpio's gpiotest utility.

For gpiotest see https://elinux.org/R-Pi_Troubleshooting#Testing
by joan
Thu Jul 12, 2018 6:44 am
Forum: Beginners
Topic: Controlling initial state of GPIO
Replies: 2
Views: 118

Re: Controlling initial state of GPIO

Look at the gpio directive used within the /boot/config.txt file.

Note that this directive is not the same as wiringPi's gpio command.
by joan
Wed Jul 11, 2018 9:05 am
Forum: Beginners
Topic: How to use PMW without using the “gpio” programm?
Replies: 6
Views: 169

Re: How to use PMW without using the “gpio” programm?

So I can just use 2 pins at once because there are just two channels? Channel 0 and channel 1 are independent and can have distinct frequency and duty cycle settings. Channel 0 can be routed to GPIO 12 and/or 18. Channel 1 can be routed to GPIO 13 and/or 19. This assumes that the config.txt softwar...
by joan
Wed Jul 11, 2018 6:43 am
Forum: Python
Topic: GPIO callback function does not update quick enough
Replies: 4
Views: 165

Re: GPIO callback function does not update quick enough

RPi.GPIO is the obvious choice. It will be as fast as any of the others for callback responsiveness. If that is not good enough you will probably have to use C.
by joan
Tue Jul 10, 2018 6:00 pm
Forum: Python
Topic: GPIO callback function does not update quick enough
Replies: 4
Views: 165

Re: GPIO callback function does not update quick enough

pigpio Python may not be suitable. Callbacks will have perhaps 0.5 milliseconds latency. You would be better off using another Python GPIO library if you want an immediate response to an interrupt.
by joan
Tue Jul 10, 2018 10:32 am
Forum: Beginners
Topic: How to use PMW without using the “gpio” programm?
Replies: 6
Views: 169

Re: How to use PMW without using the “gpio” programm?

There are two channels of hardware PWM (GPIO 12/18, 13/19) which can be used for PWM as indicated by pcmanbob.

If you mean bit banging PWM by writing using sysfs from a shell then it is likely to be jittery and low frequency.
by joan
Tue Jul 10, 2018 10:26 am
Forum: Troubleshooting
Topic: Problem with GPIO pins
Replies: 28
Views: 584

Re: Problem with GPIO pins

That indicates a permanent failure (assuming nothing was connected to the failing GPIO during the test). The likely cause is connecting more than 3.3V to one of those GPIO.
by joan
Mon Jul 09, 2018 5:42 pm
Forum: C/C++
Topic: Problem writing to /dev/tty
Replies: 4
Views: 222

Re: Problem writing to /dev/tty

Output is buffered until a newline is seen.
by joan
Mon Jul 09, 2018 3:13 pm
Forum: Troubleshooting
Topic: Problem with GPIO pins
Replies: 28
Views: 584

Re: Problem with GPIO pins

Run wiringPi's pintest or pigpio's gpiotest with nothing connected to the GPIO.

https://elinux.org/R-Pi_Troubleshooting#Testing
by joan
Mon Jul 09, 2018 11:34 am
Forum: Advanced users
Topic: Is there a performance penalty to using two byte structs instead of 4?
Replies: 16
Views: 534

Re: Is there a performance penalty to using two byte structs instead of 4?

Rather than ask why don't you just find out?

Time the alternatives and use the fastest if that is important to you.
by joan
Mon Jul 09, 2018 10:03 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Synchronous 3-wire serial interface
Replies: 3
Views: 141

Re: Synchronous 3-wire serial interface

Which device? If it needs MISO and MOSI on a single line (because it receives variable commands and returns a value) then you will need 3-wire mode.

Go to advanced search