Go to advanced search

by PiGraham
Mon Aug 02, 2021 7:49 am
Forum: MicroPython
Topic: Pi PICO USB HID device support in Micro Python?
Replies: 19
Views: 369

Re: Pi PICO USB HID device support in Micro Python?

I'd say 'perfect' would be means provided, and example code that is easy to customise included. Otherwise this keypad is no better suited to USB HIB use than any other keypad or set of buttons. It's got a Pico attached with a USB connector so it can be a HID device, which most other keypads can't b...
by PiGraham
Sun Aug 01, 2021 6:22 pm
Forum: MicroPython
Topic: Pi PICO USB HID device support in Micro Python?
Replies: 19
Views: 369

Re: Pi PICO USB HID device support in Micro Python?

It's a tricky one. It is perfect for doing that. Doing that can indeed be done -- even if they don't provide any means for doing that themselves. I'd say 'perfect' would be means provided, and example code that is easy to customise included. Otherwise this keypad is no better suited to USB HIB use ...
by PiGraham
Sun Aug 01, 2021 2:50 pm
Forum: MicroPython
Topic: Pi PICO USB HID device support in Micro Python?
Replies: 19
Views: 369

Re: Pi PICO USB HID device support in Micro Python?

Might this be a micropython example for this keypad?
https://github.com/pimoroni/pimoroni-pi ... ad/demo.py

Probably, but nothing there related to sending keycodes. Only reading buttons and setting illumination.
by PiGraham
Sun Aug 01, 2021 2:47 pm
Forum: MicroPython
Topic: Pi PICO USB HID device support in Micro Python?
Replies: 19
Views: 369

Re: Pi PICO USB HID device support in Micro Python?

It comes out of the box with no PICO attached. I plug in a PICO, load the custom Pimoroni Micro Python uf2 file, then save the demo file as main.py to the PICO via Thonny. The buttons then light up and change colors as you press them. The demo runs just fine. Is that all it does - light the buttons...
by PiGraham
Sun Aug 01, 2021 10:51 am
Forum: MicroPython
Topic: Pi PICO USB HID device support in Micro Python?
Replies: 19
Views: 369

Re: Pi PICO USB HID device support in Micro Python?

Is there USB HID Device support in Micro Python for the Pi PICO? I just recently bought a Pimoroni PICO RGB keyboard Base and want to set it up as a USB HID keyboard. https://shop.pimoroni.com/products/pico-rgb-keypad-base It looks like Pimoroni provide a full micropython uf2 with all their librari...
by PiGraham
Sat Jul 31, 2021 7:37 pm
Forum: MicroPython
Topic: Pi PICO USB HID device support in Micro Python?
Replies: 19
Views: 369

Re: Pi PICO USB HID device support in Micro Python?

Is there USB HID Device support in Micro Python for the Pi PICO? I just recently bought a Pimoroni PICO RGB keyboard Base and want to set it up as a USB HID keyboard. https://shop.pimoroni.com/products/pico-rgb-keypad-base It looks like Pimoroni provide a full micropython uf2 with all their librari...
by PiGraham
Fri Jul 30, 2021 12:36 pm
Forum: Camera board
Topic: Code for Automated Color Analysis
Replies: 2
Views: 134

Re: Code for Automated Color Analysis

For arbitrary straight lines you could look at bresenham algorithm
https://pypi.org/project/bresenham/
by PiGraham
Thu Jul 29, 2021 7:51 am
Forum: Camera board
Topic: Code for Automated Color Analysis
Replies: 2
Views: 134

Re: Code for Automated Color Analysis

By linear you mean you want to do something with pixel values along a straight line? You start here https://picamera.readthedocs.io/en/release-1.8/array.html#pirgbarray Get the picamera RGB image into a numpy array. You can then use numpy functions to access and process pixel values To work along a ...
by PiGraham
Tue Jul 27, 2021 8:55 am
Forum: Advanced users
Topic: Two HDMI screens as one elongated screen (help)
Replies: 5
Views: 249

Re: Two HDMI screens as one elongated screen (help)

You might want to look at displays that have that aspect ratio in one screen. May be expensive. May not work with Pi. I think I have seen such displays at low cost with HDMI driver boards in the past but I don't have a link. May be worth a search. ultrawide stretched display https://display-innovati...
by PiGraham
Sat Jul 24, 2021 1:52 pm
Forum: General discussion
Topic: Motors not spinning with GPIO pins
Replies: 4
Views: 150

Re: Motors not spinning with GPIO pins

The Amazon page image shows the battery pack at the back with two 18650 cells in a holder.

Image

From your photo you have no battery pack.
by PiGraham
Tue Jul 20, 2021 10:37 am
Forum: General
Topic: Pi Pico - the most user un-friendly MCU?
Replies: 323
Views: 10421

Re: Pi Pico - the most user un-friendly MCU?

Thanks, I emailed you.
by PiGraham
Tue Jul 20, 2021 7:54 am
Forum: General discussion
Topic: MSOffice on a Pi-400
Replies: 75
Views: 2684

Re: MSOffice on a Pi-400

In terms of total number of ARM-based desktop PCs sold, would the Pi 4B and 400 market share be large or small? I don't actually know any other device one might want to install ARM Windows on. Surface Pro X from some company based in Redmond I believe ... https://en.wikipedia.org/wiki/Surface_Pro_X...
by PiGraham
Mon Jul 19, 2021 1:17 pm
Forum: General
Topic: Pi Pico - the most user un-friendly MCU?
Replies: 323
Views: 10421

Re: Pi Pico - the most user un-friendly MCU?

lurk101 wrote:
Mon Jul 19, 2021 11:24 am
nick.mccloud wrote:
Mon Jul 19, 2021 9:33 am
I've added you as a friend if you want to PM me.
Adding a friend enables PMs?
It seems not.

I've attempted contact on linkedin.
by PiGraham
Mon Jul 19, 2021 8:38 am
Forum: General
Topic: Pi Pico - the most user un-friendly MCU?
Replies: 323
Views: 10421

Re: Pi Pico - the most user un-friendly MCU?

nick.mccloud wrote:
Sat Jul 17, 2021 9:09 am
Even small PIC projects MPLab IDE X can take a while.
Nick,
A quick off topic question. Are you available to consult on a small PIC software related task?
by PiGraham
Mon Jul 19, 2021 7:02 am
Forum: Graphics, sound and multimedia
Topic: USB speakers not recognized in RP 4
Replies: 17
Views: 567

Re: USB speakers not recognized in RP 4

LTolledo wrote:
Sun Jul 18, 2021 9:55 pm
rated 6W (3W + 3W)
DC5V 500mA
Those specs are questionable.
Granted the audio power will be peak, not RMS, still I wonder how you get 6W audio out from 2.5W electrical power in.
by PiGraham
Sat Jul 17, 2021 6:21 pm
Forum: Graphics, sound and multimedia
Topic: USB speakers not recognized in RP 4
Replies: 17
Views: 567

Re: USB speakers not recognized in RP 4

are they listed if you run

Code: Select all

lsusb

or 

dmesg
by PiGraham
Sat Jul 17, 2021 5:11 pm
Forum: Automation, sensing and robotics
Topic: Need Help: Simple Home Power Status Detector
Replies: 13
Views: 611

Re: Need Help: Simple Home Power Status Detector

I know nothing about this device, but something like it might fit your need.

http://doc.mokotechnology.com/index.php?s=/page/166

Plugin mains power monitor measures V A W and has Bluetooth I/F and an API
by PiGraham
Fri Jul 16, 2021 1:43 pm
Forum: Beginners
Topic: Trying to read ADC only for a certain amount of time
Replies: 2
Views: 111

Re: Trying to read ADC only for a certain amount of time

You need to control your sample rate & number of samples somehow. You could call sleep after each sample. If you sample once every second and do your elapsed time loop for 10 seconds you will have ten samples stored. You could use a timer that ticks every second and count each sample until you g...
by PiGraham
Wed Jul 14, 2021 6:55 am
Forum: General discussion
Topic: Collect data using sensors connected to Raspberry Pi and display the data on an android application
Replies: 5
Views: 261

Re: Collect data using sensors connected to Raspberry Pi and display the data on an android application

Two basic approaches: Write the data to a third party server on the internet somewhere and write your client on the phone to access Build your own server on the Pi and expose that to the internet, probably by port mapping on your router. For the first you could use a public MQTT broker (server) rand...
by PiGraham
Tue Jul 13, 2021 9:18 am
Forum: Python
Topic: event_callback (RISING - FALLING)
Replies: 17
Views: 512

Re: event_callback (RISING - FALLING)

Well the first thing I see is you have no pull up or down on your button either with external resistors or by a setting in your code, I did mention this when I posted the example. (might be a good idea to go read my example post again) You are also looking for a rising edge but you have your button...
by PiGraham
Tue Jul 13, 2021 8:46 am
Forum: Python
Topic: event_callback (RISING - FALLING)
Replies: 17
Views: 512

Re: event_callback (RISING - FALLING)

I believe that GPIOZero can handle both edges. https://gpiozero.readthedocs.io/en/stable/api_input.html#regular-classes when_pressed The function to run when the device changes state from inactive to active. This can be set to a function which accepts no (mandatory) parameters, or a Python function ...
by PiGraham
Mon Jul 12, 2021 1:04 pm
Forum: Troubleshooting
Topic: Can't type "at" symbol
Replies: 10
Views: 232

Re: Can't type "at" symbol

It seems you have a US keyboard. Followed by: As other have stated, @ is SHIFT ' to the left of ENTER Therefore, @ is SHIFT 2 (key to the left of 3). OP Specifically asked where @ was on a UK keyboard, why are you muddying the water? It's fairly obvious OP has a non UK keyboard (Likely US) configur...
by PiGraham
Mon Jul 12, 2021 10:49 am
Forum: Troubleshooting
Topic: Can't type "at" symbol
Replies: 10
Views: 232

Re: Can't type "at" symbol

Hello. So far I'm really enjoying my new Pi 4 B, but there's one problem. I set it up with British English as the default locale; now pressing Shift + 2 types " instead of "@". Very annoying when you're trying to type an email address. I tried enabling the en_US locale and rebooting;...
by PiGraham
Fri Jul 09, 2021 10:46 am
Forum: Camera board
Topic: Questions on rolling shutter camera frame
Replies: 11
Views: 406

Re: Questions on rolling shutter camera frame

https://www.raspberrypi.org/forums/download/file.php?id=47911 It looks like the lowest 2 is the first illuminated digit in the frame. Then 9 then 1, each progressively a bit higher. Then the next 2,9,1 and so on, with exposure ending when the last 1 at the top is lit. You could get that with global...

Go to advanced search