Quantcast
Channel: Support - Pimoroni Buccaneers
Viewing all 6941 articles
Browse latest View live

Making fan shim "dumb"

$
0
0

@wildestpixel wrote:

As fanshim isn’t on pinout.xyz yet - and given I like the form factor and prefer it to having a.n.other 5v 2 pin fan wired up and around my IQAudio DACPlus, I was wandering if there was any way to just turn fanshim into a dumb fan that’s always on.

The sounds not that obtrusive full on, and I don’t mind losing the features for my purpose.

Would anyone know what needs cutting (traces) or removing (components) or even additional shunting to achieve this ?

I only want I too take power and ground, leaving my IO clean.

Posts: 2

Participants: 2

Read full topic


PMS5003 No Output

$
0
0

@n7qnm wrote:

Setting up an enviro+ with PMS5003.

After doing a pip install configparser, the installer seemed to work and all the sensors EXCEPT the PMS5003 (the main reason I bought the thing).

When I run the particulates example, all I see is “Press Ctrl-c to exit”.

If I run all-in-one, after a few taps, I see
Traceback (most recent call last):
File “all-in-one.py”, line 188, in
data = pms5003.read()
File “build/bdist.linux-armv6l/egg/pms5003/init.py”, line 121, in read
pms5003.ReadTimeoutError: PMS5003 Read Timeout

The fan is running on the PMS, but I can’t see anything beyond that

Help?

Posts: 1

Participants: 1

Read full topic

Raspberry Pi 4 + Hyperpixel 4 screen in portrait mode touch seems inverted

$
0
0

@markmcgookin wrote:

Hi,

I was pestering people on twitter about this here (Can see a video there of what’s happening).

I have a new Raspberry Pi 4 setup with the latest raspbian os, setup headless via SSH, then installed the HyperPixel 4 using the one line installer. Everything went fine, restarted, but the display is in portrait mode, and the Y axis (if looking at it in portrait mode) is inverted for touch making it pretty unusable. X axis is normal.

I’ve done and update and tried lcd_rotate=0 and 2 in /boot/config.txt and neither have changed anything. I installed a mouse and used the screen config utility in the GUI but changing the orientation there rotated the screen but the touch was still screwed up with strange axis things happening.

Anyone got any ideas? I’m away for a week working remotely on Saturday, and was planning on taking this with me to do some tinkering with, so would love to have this sorted before then.

Many thanks to anyone who can help.

Regards,

Mark

Posts: 2

Participants: 2

Read full topic

Unable to get Enviro+ to work from crontab when keyboard not connected

$
0
0

@ashimmin wrote:

I’ve built the air quality monitor and connected it to Luftdaten following all the instructions here:

https://learn.pimoroni.com/tutorial/sandyj/enviro-plus-and-luftdaten-air-quality-station

Everything works fine if I run the luftdaten.py script by hand. Everything also runs fine from crontab on reboot as long as I have my keyboard attached. It all goes wrong as when I reboot without the keyboard attached.

I’ve directed output to a log file so I can see what’s going on and in the case of it not working when the keyboard is not attached I get the following:

Raspberry Pi serial: 000000008a8fe1d4
Wi-Fi: connected

{‘P2’: ‘2’, ‘pressure’: ‘62699.62’, ‘P1’: ‘2’, ‘temperature’: ‘4.80’, ‘humidity’: ‘50.59’}
(“bad handshake: Error([(’’, ‘osrandom_rand_bytes’, ‘getrandom() initialization failed.’)],)”,)
{‘P2’: ‘2’, ‘pressure’: ‘102746.46’, ‘P1’: ‘2’, ‘temperature’: ‘22.86’, ‘humidity’: ‘26.47’}
(“bad handshake: Error([(’’, ‘osrandom_rand_bytes’, ‘getrandom() initialization failed.’)],)”,)

The other symptom of the problem is that the LCD on the Enviro+ starts up all pixellated and never displays the serial number and ‘WiFi connected’ message that appears when it is working properly and logging data to Luftdaten.

So, it’s clear there’s a problem but I can’t for the life of me think why simply removing the keyboard would matter.

The keyboard and mouse I’m using and wireless and so I’m putting the wireless dongle into the USB port on the Pi to get the keyboard and mouse working.

Anyway, I’m baffled and this is driving me nuts. If anyone can explain what the problem is and how to resolve it I’d be most grateful. Obviously I can’t deploy this monitoring station until I can make it boot successfully without screen, keyboard and mouse attached.

Alice

Posts: 4

Participants: 2

Read full topic

TV Hat doesn't work

GFX Hat not displaying any text

$
0
0

@zemariamm wrote:

Hello everyone,

I just bought a raspberry PI 3 B+ and installed Raspbian, I purchased a GFX hat and connected it to my raspberry pi (also using a pibow coupe), I tried to run the examples (and they all run without throwing any errors) but no text is ever displayed. Is this a hardware problem or a software issue? Please advise

Best,

Ze

Posts: 1

Participants: 1

Read full topic

The Venerable PiGlow, Buster Problems?

$
0
0

@zimchaa wrote:

Not sure if there should be a Raspbian Buster thread perhaps? But I’m trying to use PiGlow on the latest Raspbian (fresh install, Raspbian Buster Lite, Minimal image based on Debian Buster, Version: **June 2019**, Release date: **2019-06-20**) and it doesn’t seem to be working - any ideas how I can debug and check that the I2C is working, see the logs besides Python, which doesn’t seem to have any indication of a problem.

Symptoms are that it doesn’t light up, despite turning up the brightness, I’ve turned on I2C both using sudo raspi-config and the installation script from the PiGlow GitHub (done using the curl option). It worked on the previous version of Raspbian?

Posts: 1

Participants: 1

Read full topic

HyperPixel 3.5 and Pi4 Not work

$
0
0

@homer66 wrote:

Hallo,

HyperPixel 3.5 display not working lastest version Raspbian Buster and Raspberry Pi 4.
Try it clean OS, and installing command: “curl https://get.pimoroni.com/hyperpixel | bash” .
Then there is nothing on the display after restart :(
Please help me.

Thanks.

Posts: 2

Participants: 2

Read full topic


Changing manufacturer and device name for Keybow?

$
0
0

@jgarbers wrote:

I’ve been experimenting with the Keybow a bit, trying to determine what scan codes are being sent, and noticed that the device identifies itself as a “Bar Gadget” from manufacturer “Foo Inc.” It looks like these are default / placeholder names in various examples in the Keybow firmware source repo. In the source I do see correct manufacturer and product strings (“Pimoroni” / “Keybow”) but they doesn’t show up in my USB devices list.

Call me finicky, but I’d prefer to see the real name! Do I just need to update firmware?

Posts: 3

Participants: 2

Read full topic

Enviro+ schematics for mics6814 heater and ADC connection please

$
0
0

@TheHWCave wrote:

Enviro+ is great but I want to understand how each sensor works in detail.
Can we please get some information how the mics6814 heaters are wired and how the sensor outputs are connected to the ADC? I am pretty sure you are not strictly following the 6814’s datasheet here (presumably because you are feeding it from 3.3V? and presume the 1015 ADC can handle the range?

Posts: 1

Participants: 1

Read full topic

Fan Shim - Install Service Preempt bug

$
0
0

@Steve wrote:

I have a fan shim. I built it OK, and mostly the software works OK. There is a bug though (IMO) in the script to install the service.

Source for install-service.sh is here

I was trying to enable the “Preempt” option
I tried install-service 50 5 10 True
& I got error in line 8 No command (or something similar)
I tried replacing the True, with Yes, or 1 and still got an error.
Because I got an error about missing command, I tried replacing True with ls on a whim.
It worked!

I think your line 8 is testing if there is a command with that name. What it should be doing is seeing if parameter 4 exists or not.

What do you think?

Posts: 1

Participants: 1

Read full topic

Sensible values to use with Fanshim daemon

$
0
0

@jhwinters wrote:

The support libraries for the Pimoroni fanshim come with a sample daemon process which you can run from systemd and thus automatically control the starting and stopping of your fan to moderate your system’s temperature.

By default, the daemon will start the fan if your system temperature goes above 36 degrees C, and then stop it again if it drops below 34. These setting seem a little silly to me, since the system will go above 36 even at idle, and then will drop by 2 degrees very quickly with the fan running. The result is that on an idle system your fan is continually stopping and starting.

AIUI, the throttling temperature is 80C, meaning we should try to keep well below that, but trying to keep it down to 36C seems excessive.

My objective would be to have the fan off when the system is idle, then cut in if system load causes the temperature to rise. I’ve been experimenting a bit and currently have the trigger threshold set to 55 degrees C, and the hysteresis set to 15C, meaning the fan comes on at 55 and goes off again at 40.

Can anyone with more knowledge of these things advise whether this is a good idea, and if not what would be more sensible settings?

TIA,
John

Posts: 1

Participants: 1

Read full topic

Disabling LiPo SHIM LED

$
0
0

@argh_matey wrote:

Is there an elegant way to disable the blue power LED on the LiPo SHIM, or is a soldering iron my only option?

-Jeremy

Posts: 2

Participants: 2

Read full topic

Inky pHat issue

Automation:bit and touch

$
0
0

@nickine9 wrote:

I have an automation:bit which works well for turning things on and off but now I want to add a simple touch control. in the past I have used a routine which averages analog reads to set an untouched threshold for a pin and then a similar process to get a touched value which is hope fully different. However as part of the averaging process I reset the pin to high after each read. In makecode I can do this by doing a digital write following the analogue read on the same pin but it looks as though this is not possible with the automation:bit as digital and analogue seem to be separated. can anyone suggest a way I can do this? ideally in makecode?

thanks in advance

Posts: 4

Participants: 2

Read full topic


Fanshim automatic.py preempt bug

$
0
0

@Steve wrote:

I think there’s a bug in autmatic.py

My output>

sudo python3 automatic.py --threshold 60 --hysteresis 10 --delay 1 --preempt --verbose
Current: 38.46 Target: 60.00 Freq 1.50 MaxFreq 1.50 Automatic: True On: False
Current: 38.46 Target: 60.00 Freq 0.60 MaxFreq 1.50 Automatic: True On: True
Current: 38.95 Target: 60.00 Freq 0.60 MaxFreq 1.50 Automatic: True On: True
Current: 37.97 Target: 60.00 Freq 0.60 MaxFreq 1.50 Automatic: True On: True
Current: 38.95 Target: 60.00 Freq 0.60 MaxFreq 1.50 Automatic: True On: True
Current: 37.97 Target: 60.00 Freq 0.60 MaxFreq 1.50 Automatic: True On: True
Current: 39.43 Target: 60.00 Freq 0.60 MaxFreq 1.50 Automatic: True On: True
Current: 37.97 Target: 60.00 Freq 0.60 MaxFreq 1.50 Automatic: True On: True
Current: 38.46 Target: 60.00 Freq 0.60 MaxFreq 1.50 Automatic: True On: True
Current: 38.46 Target: 60.00 Freq 0.60 MaxFreq 1.50 Automatic: True On: True
Current: 38.46 Target: 60.00 Freq 0.60 MaxFreq 1.50 Automatic: True On: True
Current: 38.46 Target: 60.00 Freq 0.60 MaxFreq 1.50 Automatic: True On: True

From code

try:
update_led(fanshim.get_fan())
while True:
    t = get_cpu_temp()
    f = get_cpu_freq()
    if args.verbose:
        print("Current: {:05.02f} Target: {:05.02f} Freq {: 5.02f} MaxFreq {: 5.02f} Automatic: {} On: {}".format(t, args.threshold, f.current / 1000.0, f.max / 1000.0, armed, enabled))
    if abs(last_change - t) > args.hysteresis and armed:
        enable = (t >= args.threshold)
        if args.preempt:
            enable = enable or (int(f.current) == int(f.max))
        if set_fan(enable):
            last_change = t
    time.sleep(args.delay)

(this is your code, with one extra parameter for max frequency)

if abs(last_change - t) > args.hysteresis and armed:
must be true because enabled is evaluated so I presume
last_change is presumably 0, t is around 38, 0-38 is -38. Abs(-38) = 38. 38>10

Then
enable = (t >= args.threshold)
t=38, 38 is less than theshold (60), so enable is false.

preempt is true, so we move to this test
enable = enable or (int(f.current) == int(f.max))
enable is initially false on first pass. However initially there’s a processor surge when initially launching the program, so current frequency initially maxes max frequency.
enabled is turned on.
The fan switches on
last_change is set to current temp, around 38.

if abs(last_change - t) > args.hysteresis and armed:
will be never be true as the last temp and temp are around 38 and the difference will never exceed my hysteresis (10) so enabled will never re-evalute, so enabled will remain on for ever.

There is also a possibility that with a large hysteresis and a short interval, that the current code would never have a large enough temperature change to trigger a reevaluation of enabled.

I’ve taken the liberty to have a go at rewriting.
If preempt and running full speed, fan on.
If over temperature, fan on.
If under (temperature - hysteresis), fan off

https://pastebin.com/vc7U83C6

Posts: 2

Participants: 2

Read full topic

Error installing fan shim software

$
0
0

@Feek wrote:

Hi folks.

I’m getting this error when I run sudo ./install.sh with the fan shim software

pi@raspberrypi:~/fanshim-python $ sudo ./install.sh
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named configparser
Error parsing configuration...

Pi4, Buster all patched.

Any ideas please?

Thanks.

Posts: 3

Participants: 2

Read full topic

pHAT BEAT RGB on 100% randomly on powerup

$
0
0

@HeadLess wrote:

My pHAT BEAT pivumeter doesn’t work right.
Visually board looks OK, but:
On every boot (after the initial curl https://get.pimoroni.com/phatbeat | bash full install)
random combination of LEDs light up - and stay on, no matter what I try.
Sometimes first tree, sometimes one, seldom none.
Always (what seams to me) at full brightness.
No combination of gpio setting to pins 12, 16 or 18 (or any other I’ve tried) seem to change anything.
They get rather hot after some time obviously.
None of python examples give any effect.
Nothing after python calling phatbeat.set_pixel(params), phatbeat.clear(), phatbeat.show() .
The audio part works as expected, same with buttons (apart from hue-control.py not changing colors obviously).
I’ve checked whether there are short-circuits between header pins, or if there are some lack of connectivity in header connector - all comes out fine (I did reflow on header just to make sure).
I’ve even made simple oscilloscope from my cellphone - using https://f-droid.org/packages/org.billthefarmer.scope/ and mic connections from phone minijack - and there seems to be an digital signal on 16 and 18 pins ( without resistors even - i know- risky ).
Reboot (not cutting power to hat) does not change the random LED configuration, only shutdown and new start.

Is this some weird timing issue? Or just faulty hat?

Posts: 1

Participants: 1

Read full topic

Using on-off shim with pantilthat

$
0
0

@skypickle wrote:

what is the recommended way to physically attach both these hats to a raspberry pi 3B+? Since the pantilthat only uses 2 pins over I2C, it does not conflict with the pins the on-off shim uses. Theoretically, these can work together. However, it seems they would physically occupy the same header. Is there an adapter that allows both these hats to connect to the GPIO?

Posts: 1

Participants: 1

Read full topic

Ubercorn matrix 2x1 - configuration problem!

Viewing all 6941 articles
Browse latest View live