-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not work #8
Comments
First, test I2C : If you use Rpi 4, there are 2 I2C : I2C0 et I2C1 par pins : https://forums.raspberrypi.com/viewtopic.php?t=295172 Check if you use I2C1 pins (3&5) By Octoprint : I hope it will help you. |
Hey folks, sorry I haven't been on top of this - I have since moved on to other things and have a printer that managed all of this internally. A great way to troubleshoot this is to just run the script: First 0 is chance, second 0 is "use the chip sensor" |
Hey Jeremy, thanks for spending some time on this. I'm keen to get this working as the other plugins for Temp/Fan control don't seem anywhere as good. I did a little test script to make sure the EMC2101 was working. It seems to be ok, the RPM feedback is off but the fan functions as it should. First is with 12V fan GND connected to the EMC2101 GND, second without. I tired your suggestion and got this. I'm not using a TCA9548A or MCP9808. Just one EMC2101 connected via a Qwiic Shim. I installed the Library for the TCA9548A and MCP9808 to get past this and got the following. I also tried modifying the EMC2101.py script so that it just pulled/printed the temperature | speed value in the format that I believe it should be but no change in the UI. Thanks for your help! |
I also tried your fork of the Enclosure Plugin with the EM2101, no luck on controlling the fan or getting the temperature. |
I got the temperature to display by disabling Use SUDO in the advanced section. |
The plugin runs initially and check to see if there is a 2101 and/or 9808 Can you paste the output here? Next, you should be able to ask for the data like you did but with a space between the 0s: /home/wilson/oprint/lib/python3.9/site-packages/octoprint_emc2101/EMC2101-py 0 0 |
wilson@raspberrypi: |
Hmm, its not getting values back for some reason.... |
Lets also have you try these commands in a few flavors: |
Added the line. wilson@raspberrypi: |
Yeah its failing to get the values.... |
So on the raspberry pi, depending how its set up your python environments may or may not have access to the i2c bus without being root... and you may have multiple python instances.... this is what we are battling here |
Same output. Makes sense, how can I go about fixing that? |
Lets make sure you have all the right tools installed: sudo apt-get install i2c-tools |
Check. |
Ok, lets step way back to basics and have you go through the Adafruit setup of the 2101 in python to get that working first: https://learn.adafruit.com/emc2101-fan-controller-and-temperature-sensor/python-circuitpython |
It must be some what correct as I can get the Temp in the Enclosure Plugin, I have the Enclosure Plugin disabled at the moment. I've been through that page and have a test script working. |
Hm... I wonder if the issue is that something else has the sensor "open". Can you try uninstalling that Enclosure plugin and rebooting... It's possible it didnt release properly. |
Ok, so lets turn back on the Use SUDO in advanced... |
I did that in the Enclosure Plugin. Is there an option in this one? |
After disconnecting/reconnecting the 2101 the fan is not pulsing 0 to 100 and I can use the Low Fan Speed setting to control the fan and it works great. |
Re: Fan Speed. So communication to the 2101 is working great for the test script, we just need to work out why yours doesn't? |
When I run the original EMC2101.py I get this now. wilson@raspberrypi:~/oprint/lib/python3.9/site-packages/octoprint_emc2101 $ python EMC2101.py |
Sudo raspi-config did it for me, for some reason, on a fresh install on a RPi 3b i2c was disabled. I'm using an AliExpress TCA9548A i2c multiplexer and a pair of generic EMC2101's and it's working now! Thank you! |
I simply don't get this to work. I am not proficient in IT stuff, so please help me out in getting this to work. I wired everything as shown, I checked an rechecked the solder joints and connections. The green light on the EMC 2101 is lit up, the fan is spinning. However there is no readout in Octopi neither for fan speed nor temperature. It simply does not recognise the EMC2101 I think. I did make sure I2C is enabled. Is there anything else I should try? Please bear with me on this one and I apologise if my query is too stupid..... Thanks for your help!!
The text was updated successfully, but these errors were encountered: