Go to advanced search

by joan
Thu Jul 29, 2021 5:27 pm
Forum: General discussion
Topic: Charging a CS GM5SL battery
Replies: 5
Views: 138

Re: Charging a CS GM5SL battery

Do you have a lipo charger? Unless you have one knowing the connections will not help.
by joan
Thu Jul 29, 2021 7:43 am
Forum: General discussion
Topic: in PIGPIO library how to get 16 clocks in output ?
Replies: 2
Views: 114

Re: in PIGPIO library how to get 16 clocks in output ?

Use the spi_flags parameter to set the auxiliary SPI device and 16 bits per word.

http://abyz.me.uk/rpi/pigpio/python.html#spi_open
by joan
Sat Jul 24, 2021 9:53 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C scan not detecting a device that the Arduino detects
Replies: 3
Views: 213

Re: I2C scan not detecting a device that the Arduino detects

What device? What i2c scan? What address?
by joan
Sat Jul 24, 2021 8:55 am
Forum: Advanced users
Topic: Pi GPIO hysteresis
Replies: 4
Views: 318

Re: Pi GPIO hysteresis

by joan
Fri Jul 23, 2021 7:41 am
Forum: Advanced users
Topic: Pi GPIO hysteresis
Replies: 4
Views: 318

Re: Pi GPIO hysteresis

pigpio allows the setting and getting of drive strength. Don't remember if it works on the Pi4/Pi400. http://abyz.me.uk/rpi/pigpio/pigs.html#PADS pigpio doesn't allow the setting of hyteresis. I was contacted by someone recently who said his experiments with hysteresis contradicted what had been ass...
by joan
Wed Jul 21, 2021 11:36 am
Forum: Advanced users
Topic: Synch gpio with exact gpu clock
Replies: 4
Views: 266

Re: Synch gpio with exact gpu clock

Why? What will this let you do that you can't do at the moment? Just wondering about the reason.
by joan
Sat Jul 17, 2021 7:48 pm
Forum: MicroPython
Topic: Trivial code sometimes takes 5ms and interrupts are missed
Replies: 14
Views: 581

Re: Trivial code sometimes takes 5ms and interrupts are missed

Where is print printing? It presumably is going to some device remote from the Pico. I'd assume the print is the source of the variability.
by joan
Sat Jul 17, 2021 5:49 pm
Forum: C/C++
Topic: How to use Bosch BMP180_driver
Replies: 9
Views: 409

Re: How to use Bosch BMP180_driver

In C the following assigns the address of the function to a variable.

temp = bmp180_get_temperature;

Do you mean to call the function?
by joan
Fri Jul 16, 2021 8:36 pm
Forum: Troubleshooting
Topic: PWM problem
Replies: 16
Views: 565

Re: PWM problem

Yes, sorry. It all worked for me on a Pi3B+, Pi4B, and a Pi400.
by joan
Thu Jul 15, 2021 9:35 am
Forum: Other projects
Topic: Sensor Not Working with i2C Multiplexer
Replies: 1
Views: 147

Re: Sensor Not Working with i2C Multiplexer

Why are you passing a scale of 70 when you are told to provide 6, 12, or 24.

initialize(addr, 70)
by joan
Wed Jul 14, 2021 8:57 am
Forum: C/C++
Topic: GPIO and Printf
Replies: 3
Views: 270

Re: GPIO and Printf

Are you sure it's not because thousands of printf have been buffered to print? Perhaps add a sleep after the printf.
by joan
Wed Jul 14, 2021 7:46 am
Forum: Python
Topic: Time since input changed states?
Replies: 1
Views: 217

Re: Time since input changed states?

Import the time module (import time).

Use time.time() in the same way as millis. time.time() reports the number of seconds since the epoch (start of 1970) as a floating point number. E.g. 1626248762.114281
by joan
Tue Jul 13, 2021 3:21 pm
Forum: Other programming languages
Topic: [Solved] Max frequency of: gpio -g wfi falling
Replies: 6
Views: 380

Re: Max frequency of: gpio -g wfi falling

pigpio works by sampling the GPIO. The default sampling rate is one every 5µs or 200k samples per second which would account for the 100k/s changes figure you see. You can change the sample rate to 1µs which would allow a count of up to 500k changes per second. Personally I'd only use that rate if t...
by joan
Tue Jul 13, 2021 7:25 am
Forum: Python
Topic: event_callback (RISING - FALLING)
Replies: 17
Views: 511

Re: event_callback (RISING - FALLING)

Please add the complete GUI example which does not work.

Please add clear photos of the button connections.
by joan
Sat Jul 10, 2021 6:11 pm
Forum: General
Topic: Using spi and I2c simultaneously on Pico
Replies: 2
Views: 154

Re: Using spi and I2c simultaneously on Pico

The buses are independent. So yes, you can use two SPI buses at the same time as two I2C buses. You will need to use different GPIO for each bus.
by joan
Thu Jul 08, 2021 8:14 pm
Forum: Troubleshooting
Topic: PWM problem
Replies: 16
Views: 565

Re: PWM problem

I do remember there were oddities on the Pi4B (with PWM) which we hoped might be resolved by the publishing of the full datasheet. They were not. One may well have been problems when the frequency was set above a certain threshold. I don't remember seeing a solution. Hi Joan, thanks for checking in...
by joan
Thu Jul 08, 2021 5:04 pm
Forum: MicroPython
Topic: Controlling a Continuos Servo
Replies: 10
Views: 536

Re: Controlling a Continuos Servo

Pulse lengths of 1ms should go in one direction, 2ms the other. Do you have a Pi with Raspbian installed to test on?
by joan
Thu Jul 08, 2021 3:20 pm
Forum: MicroPython
Topic: Controlling a Continuos Servo
Replies: 10
Views: 536

Re: Controlling a Continuos Servo

@Ketilbert

A link to the servo specs may help.
by joan
Thu Jul 08, 2021 7:33 am
Forum: Troubleshooting
Topic: PWM problem
Replies: 16
Views: 565

Re: PWM problem

I do remember there were oddities on the Pi4B (with PWM) which we hoped might be resolved by the publishing of the full datasheet. They were not. One may well have been problems when the frequency was set above a certain threshold.

I don't remember seeing a solution.
by joan
Tue Jul 06, 2021 7:43 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Pi 4 i2c Dead?
Replies: 3
Views: 433

Re: Pi 4 i2c Dead?

I'd assume user error as the most likely. A clear photo showing the connections will help.
by joan
Mon Jul 05, 2021 12:22 pm
Forum: SDK
Topic: Need Confirmation On Serial Number Retrieve from PICO
Replies: 17
Views: 803

Re: Need Confirmation On Serial Number Retrieve from PICO

Looks okay. Here are some of mine (decimal then hex).

16600361143192562487 0xe6605481db30ab37
16600330585437201200 0xe66038b713096330
16600361143198953270 0xe6605481db922f36
by joan
Sat Jul 03, 2021 7:17 pm
Forum: General
Topic: [Solved] - USB Serial & PWM - SDK bug?
Replies: 14
Views: 529

Re: USB Serial & PWM - SDK bug?

Mine. Perhaps something has changed since.

https://github.com/joan2937/picod/blob/ ... eLists.txt
by joan
Sat Jul 03, 2021 5:09 pm
Forum: General
Topic: [Solved] - USB Serial & PWM - SDK bug?
Replies: 14
Views: 529

Re: USB Serial & PWM - SDK bug?

My point is that using the C SDK you can read PWM and get the results over USB serial. I didn't need to do anything fancy with the cmake files. The SDK is OK, no bug there.

I presume you are saying there is something wrong with your cmake. I can't help with that.

Go to advanced search