1 1
trohn_javolta

GPIO in/output for Amlogic boards without dedicated gpio header possible?

Recommended Posts

Hi, I plan on running octoprint on my Amlogic S912 china android box.

Now I need to connect a filament runout sensor via gpio, in a octoprint plugin one specifies the used pins.

 

Unfortunately my device has no dedicated gpio header built in, so I want to ask:

Is there a way (that maybe works easily with armbian) to have gpio somehow? Like some usb stick with gpio on it that can forward gpio in and output?

I have a pi zero lying around and found this https://github.com/raspberrypi/gpioexpander/wiki where some pigpio library is mentioned.

But no idea if or how this could work on an Amlogic box.

Any ideas?

Share this post


Link to post
Share on other sites

The software you are referencing is for RPI will not work on other devices without major ports. On the other hand the TV boxes typically do not have GPIOS exposed so is a poor choice for custom octoprint controller. I think it will be better off if you use a cheap SBC with armbian. I run my octo print in a $15-OpiZero 512MB with out problems. I made a mini distribution with octo print just plug an play.

 

cheers.

 

 

 

Share this post


Link to post
Share on other sites
On 1/15/2020 at 11:30 AM, ldiaz said:

The software you are referencing is for RPI will not work on other devices without major ports. On the other hand the TV boxes typically do not have GPIOS exposed so is a poor choice for custom octoprint controller. I think it will be better off if you use a cheap SBC with armbian. I run my octo print in a $15-OpiZero 512MB with out problems. I made a mini distribution with octo print just plug an play.

 

cheers.

 

 

 

Too bad :(

I only tried octoprint directly on the pi zero and I found it to be too weak for it. The orange pi zero doesn't seem to be that much more powerful. 

Share this post


Link to post
Share on other sites

Well, If you don't use fancy plugins and slice your models in the PC, octoprint just streams/monitor data to/from the serial port and uses a websocket to send status to the web browser. This typically loads one core with 10%-15% while printing. OpiZero has 4 cores and with armbian the frequency is scaled automatically controlling the heat and giving extra juice when needed. Even with a super cheap USB camera (no 1080p) without mjpeg chip the OPI is capable to stream video using 50% of other core. I even run a mini samba server on the OPI for editing files on the PI form the PC. I use builtin 100mb ethernet and networking is not a problem, I did not test using octoprint via WIFI.

Other advantage of using SBC vs TVBox is that you can easyly prower the board from GPIO header, using a small DC-DC stepdown module($0.5) you can power the board from the printer PSU directly and avoid using a charger.

 

If you need extra power you can find 1G RAM with better processors 64bit processor such H5/H6 with plenty of GPIOs for sensors, leds.... at good prices that are supported by armbian.

 

If you want to give it a try please let me know

 

Cheers,

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
1 1