Feature request: Status Display

12 Posts
4 Users
1 Reactions
1,309 Views
0
Topic starter

Hello,

another option, to connect a status display like OLED SSD1306 to connect to raspberry.

Show information like ip, cpu, ... 🤩 

 

Thanks

PIO

Benne 01/02/2020 10:41 pm

@pio78

Some series of the eBlocker 2 had a custom LED build in (based on GPIO) that is supported by eBlockerOS already. This shows the status with different color coding & blinking. I.e LED blinks white while updating, blue when booting, orange when active & protecting etc.

Maybe we can leverage this code and/or publish the electronic layout (made by an eBlocker partner).

Pio78 Topic starter 05/02/2020 5:22 pm

@benne

Thanks for this information.
Which GPIO Port are this on a raspberry pi?

Benne 05/02/2020 9:09 pm

@pio78

As I mentioned, this LED kit was made by a partner and we are all software guys. Unfortunately we have no clue about electronic details - but you‘ll see the code for driving the LED shortly 😉
If you are into hardware, I‘happy to send you a LED kit to check it out and share your insights with the community. I have one(!) left to share.

Anonymous 01/03/2020 6:41 pm

@pio78

@benne

I just startet kind of socialmedia-thing on building a cool and sexy PIeBlocker at another thread here (you'll find the link after this post. It's called PieBlocker-Workshop). It would be serious fun to get the story more populatet and maybe fix that thing with the thumb-up-votes. I'd love to have thumb-down ones...;-)

4 Answers
0

referring to my last comment:

PI-eBlocker-Workshop

Pio78 Topic starter 01/03/2020 8:42 pm

@ngnb

I read your post, for the status led you need a led with WS2812 Controller (SPI)
the next days i will post the pinout.

PIO

Anonymous 03/03/2020 10:39 pm

okay, thx.

Pio78 Topic starter 09/03/2020 10:10 pm

@ngnb

 

Hi, it is not working with raspberry pi ...
In eblocker there is eblocker-led service on the SPI Pin.
I think it works only on Banana PI (kommercial eBlocker white case)

:o(

0
Topic starter

@bpr, @random

Is there a documentation which values are send to the Led-Modul ?

 

regards

PIO78

0

@Pio78

The status values for the eblocker-led service are defined here:

https://github.com/eblocker/eblocker-led/blob/develop/lib/eblocker/led/status.rb

To activate a status you send the string "status=..." to localhost at port 9000 as described in the readme:

https://github.com/eblocker/eblocker-led

Unfortunately, I could not get the RGB LED to work on a Raspberry Pi. Maybe the timing of the SPI device is somehow different than on a Banana Pi M2+.

The low-level code for sending the bits via SPI to the LED is here:

https://github.com/eblocker/eblocker-led/blob/develop/lib/eblocker/led/spi.rb

Basically, a short pulse means 0 and a long pulse means 1. The timing specification is at:

https://cdn-shop.adafruit.com/datasheets/WS2812.pdf

Pio78 Topic starter 20/07/2020 8:02 pm

@bpr

Thanks, the next days I look at the code.

 

regards

PIO78

 

0
Topic starter

@bpr, @all

I looked at the led modul on github, here the result.

This is to do:

At:
/boot/config.txt

change:
dtparam=spi=on

At:
/etc/eblocker-device.properties
change:
device.led.rgb.available = true

 

Plug in Led (WS2812)

Reboot eBlocker

And now its working ... tested  eBlocker 2.5.3 on Raspberry PI 3B

 

Pin-Out LED (WS2812)

        ________
       /                \
     /                    \
    I                      I
    I                      I
##############
    I       I      I      I
  Din Vdd Gnd Dout

    I       I      I     

  19     1     6
Pin on GPIO Port Raspberry PI

 

@bpr

is it possible to set these two settings for default?

 

nice evening 🍺 

PIO78

Answer

Nach oben scrollen