I was wondering if anyone was able to get the Laser Transmitter Module working. I have tried connecting the module to RPi 4b and RPi5. I have connected directly to the RPi, with a breadboard. I can’t get the laser to even turn on. Do I have to write python to get it to turn on or will connecting to to the RPi GPIO directly make the module turn on? Any info. will help. Thank you!!
The laser emitter module is required to be controlled by code in order to work properly.
You follow the example of our sensorkit-v2 kit to run it and see how it works.
The prerequisite is to install the sensorkit-v2 source code:
https://docs.sunfounder.com/projects/sensorkit-v2-pi/en/latest/download_the_code.html
Once the code is installed, go to our Lesson 5 Laser Emitter Module and follow the steps to see how it works:
https://docs.sunfounder.com/projects/sensorkit-v2-pi/en/latest/lesson_5.html
Hello!
I was able to get the laser module working but now have another issue with the Lesson 20 Photoresistor Module. I’m following the instructions located here
https://docs.sunfounder.com/projects/sensorkit-v2-pi/en/latest/lesson_20.html
I’ve tried researching online for a solution with no luck. When I run the python code from SunFounder,
The following error message.
Address: 72
[Errno 5] Input/output error
Traceback (most recent call last):
File “/home/mdk177/Documents/python/SensorKit/Python/20_photoresistor.py”, line 24 in
Loop()
File “/home/mdk177/Documents/python/SensorKit/Python/20_photoresistor.py”, line 7, in loop
Print (‘Value: ‘, ADC.read(0))
File “/home/mdk177/Documents/python/SensorKit/Python/PCF8591.py”, line 44 in read
return bus.read_byte(address)
File “/usr/lib/python3/dist-packages/smbus2.py”, line 396 read_byte
ioctl(self.fd, I2C_SMBUS, msg)
OSError: [Errno 5] Input/output error
Any help would be appreciated!
Thank you
Matt