Post by charliee on May 14, 2018 17:15:34 GMT -8
ThunderBoard Issues
3v3 to 5v I2C Bidirectional Converter
Raspberry Pi 3 model B V1.2
I2C 4 Bus Multiplexing with Grove 0057-122015-01
I've been running a fully functional solar powered weather system with other components not listed above for clarity. The Bus Mux worked. The software is user written, with much of the code 'borrowed' from you original 'threaded' weather station software. It's been working fine for over a year.
I decided to add lightning detection to my system. I ran into problems and starting removing subsystems trying to find out the issues. I then decided to start with only lightning detection using the demo.py software in the RPi_AS3935 directory.
Pi I2C pins connected directly to the Grove ThunderBoard I2C grove connector
Pi Physical pin 36 directly connected to the Grove ThunderBoard Int Pin of other grove connector.
The demo.py software modified to use address=2, bus=1, and interrupt pin 36
I also added some debug code in the RPi_AS3935.py driver.
Python 2.7.9 (default, Sep 17 2016, 20:26:04)
[GCC 4.9.2] on linux2
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>>
class inititialization of 3935 object
I2C address is: 2
Bus is now: 1
Bus instance has been set up
Return from set up sensor instance
In set indoors with indoors set to: True
Lightning sensor calibration is in process
Basic sensor setup stuff has been run
Waiting for lightning - or at least something that looks like it
lightning interrupt 20:16:37 - 2018/05/14
interrupt reason is: 4
Disturber detected - masking
lightning interrupt 20:16:40 - 2018/05/14
interrupt reason is: 8
We sensed lightning!
It was 1km away. (20:16:41 - 2018/05/14)
While the above code works, I2cdetect -y 1 does not show the ThunderBoard address (2) on the I2C mux. ??
If I added the Bidirectional converter into the mix with it connected directly to the Pi I was getting I/O errors in the read-data part of the driver.
If I connected the Pi to the Bus Multiplexor and the ThunderBoard directly to the Bus 1 grove connector, I would get I/O errors. Any other bus connection would give me symbus error.
Using the one grove to three grove mux expansion board, I tested running the Pi I2c to the board and had the board connect directly to the Thunderbird. It worked. I then connected the weatherboard I2c slot to the mux expansion and could read data from it. I then connected the Bus Multiplexor input I2c to the other I2c on the weatherboard and connected my AM2315 sensor to Bus 0 on the Mux. It worked.
What should I try to get the Thunderboard connected via the I2c to the Bus multiplexor so I can use all bus options for adding back my solar board?
Any insights to my problem?