Notifications
Clear all

[Solved] Power-LED and shutdown-button

Page 2 / 2

Micha_AC
Posts: 26
Topic starter
(@micha_ac)
Eminent Member
Joined: 1 year ago

okay, it's just a simple sudo python ./install

fabscan extender solved

 

Reply
2 Replies
etofi
(@etofi)
Joined: 6 months ago

Active Member
Posts: 14
Posted by: @micha_ac

okay, it's just a simple sudo python ./install

fabscan extender solved

 

That ist correct. But you need some more Hardware (see GitHub page). Installing the Script is not enough.

 

Reply
Micha_AC
(@micha_ac)
Joined: 1 year ago

Eminent Member
Posts: 26

@etofi Yes, it is, I soldered the switch before I could manage to get the script working.
I'm more the hardware guy....as sonn as I knew which GPIO to use, I finished the hardware ;)

Btw. if anymody else is interested in this: you can use any resistor from 1k to10k ohms as an pullup. There's no info on this on github ;)

Reply
mario
Posts: 537
Admin
(@mario)
Member
Joined: 3 years ago

I never tested it. You should open an issue on GitHub and ask the project owner.

Reply
1 Reply
Micha_AC
(@micha_ac)
Joined: 1 year ago

Eminent Member
Posts: 26

@marioThat's exactly what I added on github: https://github.com/helgetnt/fabscanpi-extender/issues/1

Reply
helgetnt
Posts: 19
(@helgetnt)
Active Member
Joined: 2 years ago

Hello,

I have now retested the installation script and it starts on my system.

What I have done:

- download zip from github & extract it

- open a terminal

- change to folder ' fabscanpi-extender-master/fabscanpi-extender '

- Enter ' ./install ' & press Return

 

'sudo' in front of it is not necessary.

Alternatively, if that doesn't work for you, enter ' python ./intall ', then it should work.

 

Sincerely Helgetnt

 

Reply
helgetnt
Posts: 19
(@helgetnt)
Active Member
Joined: 2 years ago

I think you can also adjust the 'switch' variable in the script so that the internal pullup resistor is used.

...not yet tested.

The internal pull up / down resistors have a value of approximately 50KΩ on the Raspberry Pi.

For button & led's you can actually use any GPIO you want. Only the following 3 not ...

PIN | GPIO(BCM) | WiringPi | Name | Function
 8    |   14              |   15         |  TxD     | serial
10   |   15              |   16         |  RxD     | serial
 7    |     4              |     7         | 1-wire   | autoreset

....of course you have to adjust the variables in the script.

--------------------------------------------------------------------------------------------------------------------------------------------

The first sentence in my Github README.md says ...

"Just use ./install to install the Extender."    

.... and NOT  ' bash ./intall '  !!!

.... since everything is written in Python, you can of course also use 'python ./install' .

..... if './install' is started without 'sudo', the script asks for the root password and then restarts itself with root rights.

Reply
mario
Posts: 537
Admin
(@mario)
Member
Joined: 3 years ago

I will prove if i can include the script into the next image 

Reply
Page 2 / 2
Share: