Go to advanced search

by joan
Sat Mar 23, 2019 1:28 pm
Forum: General discussion
Topic: IR remote from Amazon
Replies: 7
Views: 176

Re: IR remote from Amazon

You need to complain to the vendor and/or Amazon and explain that parts were missing from the shipment. You should have received what was pictured.
by joan
Sat Mar 23, 2019 9:14 am
Forum: General discussion
Topic: IR remote from Amazon
Replies: 7
Views: 176

Re: IR remote from Amazon

You plug the IR RX into the small board. You then connect the small board to the Pi with jumper leads.

I'd guess Pi 3V3 to VCC, Pi ground to GND, and any spare GPIO to the other pin (IN?).

Also see http://abyz.me.uk/rpi/pigpio/examples.h ... _hasher_py as a way of reading the data.
by joan
Sat Mar 23, 2019 9:01 am
Forum: Troubleshooting
Topic: GPIO pins for I2C defective?
Replies: 2
Views: 61

Re: GPIO pins for I2C defective?

pigpio has the gpiotest utility.

https://elinux.org/R-Pi_Troubleshooting#Testing

wiringPi has the pintest utility.
by joan
Fri Mar 22, 2019 5:48 pm
Forum: General discussion
Topic: Interrupt for GPIO
Replies: 1
Views: 61

Re: Interrupt for GPIO

In what context? Linux handles interrupts. If you want to handle interrupts it may be best to ask in the bare metal section.
by joan
Fri Mar 22, 2019 1:07 pm
Forum: Weather station
Topic: I2C bus seems not to work
Replies: 5
Views: 150

Re: I2C bus seems not to work

procount wrote:
Fri Mar 22, 2019 12:40 pm
Sorry if this is obvious, but you did enable i2c in config.txt or raspi-config and load any appropriate dtoverlays?
You can rule that out as i2cdetect will report an error if it can't find a working bus.
by joan
Fri Mar 22, 2019 12:26 pm
Forum: Weather station
Topic: I2C bus seems not to work
Replies: 5
Views: 150

Re: I2C bus seems not to work

Perhaps try reseating the HAT.
by joan
Thu Mar 21, 2019 6:40 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Multiple I2C devices AND 5v feed?
Replies: 3
Views: 61

Re: Multiple I2C devices AND 5v feed?

You could feed the 5V from the barrel into a microusb plugged in to the Pi. Alternatively just feed the 5V into pins 2 or 4 and ground into pin 6 (or any other convenient ground pin). As already stated there is some protection on the microusb socket (polyfuse and limited overvoltage protection). You...
by joan
Thu Mar 21, 2019 1:28 pm
Forum: General discussion
Topic: Post Deleted
Replies: 12
Views: 383

Re: Post Deleted

Odd if that was the reason. I won't be able to do any new designs.
by joan
Thu Mar 21, 2019 1:13 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: HELP! Pressure Sensor I2C
Replies: 10
Views: 125

Re: HELP! Pressure Sensor I2C

Send it to ariandroid at abyz.me.uk and I will have a look.
by joan
Thu Mar 21, 2019 1:11 pm
Forum: General discussion
Topic: Post Deleted
Replies: 12
Views: 383

Re: Post Deleted

I read it yesterday. I didn't notice anything wrong with your post. Perhaps it fell foul of an undeclared necro rule?
by joan
Thu Mar 21, 2019 12:58 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: More than two HW PWMs
Replies: 7
Views: 115

Re: More than two HW PWMs

I can't think of any simple way of doing that on the Pi without using external PWM hardware. If I had to try I'd look at pigpio waves but that may or may not work depending on the detailed requirements.
by joan
Thu Mar 21, 2019 12:48 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: HELP! Pressure Sensor I2C
Replies: 10
Views: 125

Re: HELP! Pressure Sensor I2C

You need to find a complete datasheet. You have only linked to an extract.

For reference the returned data bits are

00 status
00 0100 0000 1000 bridge data
0110 0100 001 temperature data
0 0000 unused bits in final byte
by joan
Thu Mar 21, 2019 12:23 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: More than two HW PWMs
Replies: 7
Views: 115

Re: More than two HW PWMs

I'm not sure if that can be achieved on the Pi or by external hardware. PWM generation tends to be output only. It sounds like you want the GPIO as an input to read a PWM value and then switch that GPIO to an output to send the read or an adjusted PWM value. It might help if you explain the overall ...
by joan
Thu Mar 21, 2019 12:13 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: HELP! Pressure Sensor I2C
Replies: 10
Views: 125

Re: HELP! Pressure Sensor I2C

The first returned 4 is the number of returned bytes. It will always be 4 unless there is an error. The status bits 15/14 are 0/0, which indicates a good reading. The bridge data is decimal 1032, temperature decimal 801. There is nothing in the linked pages to indicate how the bridge and temperature...
by joan
Thu Mar 21, 2019 11:16 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: More than two HW PWMs
Replies: 7
Views: 115

Re: More than two HW PWMs

What is special about your PWM needs such that software timing is not good enough? Could you explain what you are using it for and give some ideas of the frequency, resolution in duty cycle etc?
by joan
Thu Mar 21, 2019 10:18 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: HELP! Pressure Sensor I2C
Replies: 10
Views: 125

Re: HELP! Pressure Sensor I2C

Try reading 2 bytes instead of 1. Use read word rather than read byte. I would actually read 4 bytes but SMBus does not properly support doing that. If read word doesn't give enough information try the following. sudo pigpiod # do just once pigs i2co 1 0x19 0 # do just once pigs i2crd 0 4 # repeat f...
by joan
Thu Mar 21, 2019 9:14 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: HELP! Pressure Sensor I2C
Replies: 10
Views: 125

Re: HELP! Pressure Sensor I2C

Have you a link to the datasheet? The page you show doesn't help me.
by joan
Wed Mar 20, 2019 10:35 pm
Forum: Troubleshooting
Topic: Trouble getting PIR sensor to control monitor
Replies: 9
Views: 112

Re: Trouble getting PIR sensor to control monitor

You need to give the full path to any files accessed within pir.py.
by joan
Wed Mar 20, 2019 12:30 pm
Forum: Python
Topic: monitor gpio if high or low
Replies: 11
Views: 211

Re: monitor gpio if high or low

by joan
Wed Mar 20, 2019 10:07 am
Forum: C/C++
Topic: WiringPi - piThreadCreate() returning EAGAIN after a while of running
Replies: 4
Views: 105

Re: WiringPi - piThreadCreate() returning EAGAIN after a while of running

I would just have one blocking thread reading the serial port. I'm not sure what you are trying to achieve. The serial port thread could just tell the main thread it has received data. No need for an external interrupt to signal that event.
by joan
Tue Mar 19, 2019 11:37 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Variable length read from I2C
Replies: 5
Views: 191

Re: Variable length read from I2C

That looks like the SMB read block data call. E.g. http://abyz.me.uk/rpi/pigpio/python.html#i2c_read_block_data SMBus 2.0 5.5.7 - Block read. S Addr Wr [A] reg [A] S Addr Rd [A] [Count] A [Data] A [Data] A ... A [Data] NA P Unfortunately that SMB call is not implemented in the Linux hardware driver....
by joan
Mon Mar 18, 2019 9:37 pm
Forum: Troubleshooting
Topic: Stuck setting up clock for nonstandard ADC
Replies: 29
Views: 437

Re: Stuck setting up clock for nonstandard ADC

The channel specifies the chip select pin to use. Channel 0 means CE0 (GPIO8), channel 1 means CE1 (GPIO7). The handle is a small number used internally by the software to index the resources used by a connection. Say you have $ pigs spio 0 50000 0 0 $ pigs spio 0 1000 0 1 $ pigs spio 0 10000000 0 2...
by joan
Mon Mar 18, 2019 2:34 pm
Forum: Windows 10 for IoT
Topic: WiringPi c# visual studio 2017
Replies: 2
Views: 151

Re: WiringPi c# visual studio 2017

wiringPi is a Linux based GPIO library. Has it been ported to Windows?
by joan
Mon Mar 18, 2019 2:25 pm
Forum: General programming discussion
Topic: Programming/HW GPIO config help for newbie
Replies: 4
Views: 109

Re: Programming/HW GPIO config help for newbie

pigpio only sets the hardware PWM to an integral number of Hz. That is a limitation of the way the pigpio command works, not of the hardware. Someone will have written some software to set the frequency in a more convenient way, it is just a question of searching. Also have a look at wiringPi and th...
by joan
Mon Mar 18, 2019 8:56 am
Forum: Troubleshooting
Topic: Stuck setting up clock for nonstandard ADC
Replies: 29
Views: 437

Re: Stuck setting up clock for nonstandard ADC

spio returns a handle (a small number >=0). You need to use the value returned by spio in the spix command. If you do more than one spio without a spic the numbers will increase by 1 for each new spio (until the daemon is restarted). The last piscope image suggests that piscope wasn't seeing all the...

Go to advanced search