linwiz / Raspberry-Pi-Web-GPIO

PHP script to control Raspberry PI GPIO pins from the web
GNU General Public License v3.0
4 stars 1 forks source link

Using Web-GPIO with an extender MCP23017 #1

Closed sch0sch closed 8 years ago

sch0sch commented 9 years ago

hey

I want to use the MCP23017 with an web application. As my base, I followed linwiz tutorial and it works perfectely;)

I am able to control the MCP23017 with an c code using wiringPi.

Now I am new to mysql and all the web stuff with linux! Would be nice to receive some help how to address the GPIOs of the extender and where to place the code in linwiz files.

Thanks in advance!

linwiz commented 9 years ago

I do not know a lot about the extender, but am I correct in the following? From what I can tell you have to give up GPIO2 and GPIO3 in order to hook up the extender, but this gives you 16 GPIO's on the extender. Are the rest of the GPIO's on the pi still completely functional?

linwiz commented 9 years ago

I think the best option is to convert the whole project to depend on wiring pi. I will begin working on this after the holidays.

linwiz commented 9 years ago

The WiringPi requirement is in development, you can follow my progress here

I have completed implementing WiringPi in order to make handling extenders feasible. (see 8de3095d900040a465fc02df459ad71aa1e91854)

I have begun adding support for the MCP23017. You can contribute and follow the progress here

sch0sch commented 9 years ago

hi,

 

I tried to figure out what you are doing right now, but my basic php knowledge is not enough. And I have no clue how you work with sql... Tell me if you ned some specific help with wiringpi or the mcp23017... I really want to help, if i can ;)

And to your post some days ago, yes it uses 2 pins, 3 and 5 on the header, this are the SDA and SCL pins. With the 3 address pins on the MCP23017 you can use up to 8 extenders, that means 128 GPIOs...

greetings schosch

 

Gesendet: Montag, 05. Januar 2015 um 18:25 Uhr Von: "Matthew Motz" notifications@github.com An: linwiz/Raspberry-Pi-Web-GPIO Raspberry-Pi-Web-GPIO@noreply.github.com Cc: sch0sch dr.lynch@gmx.de Betreff: Re: [Raspberry-Pi-Web-GPIO] Using Web-GPIO with an extender MCP23017 (#1)

This is in development, you can follow my progress here

— Reply to this email directly or view it on GitHub.

 

linwiz commented 9 years ago

I am working on a improved version of web gpio so this is temporarily on hold. Extender functionality will become a part of the new version.