Discuss Scratch
- Discussion Forums
- » Connecting to the Physical World
- » How can I interface 100+ analog inputs for access by Scratch
- astridutami
-
2 posts
How can I interface 100+ analog inputs for access by Scratch
Apologies if this has been raised (& answered) in the past
I'm in the process of creating a Scratch project to interface to the real world where I need to monitor over 100 analog inputs.
My preference is to move away from using Scratch harga motor on the PC & use the Raspberry Pi - either way after reading many forums/visiting many web sites over the last few weeks - the best bet seems to be to interface the PC/Raspberry Pi to an Arduino unit & connect a shield with sufficient analog inputs. To date I have only been tips terbaru able to find a shield that offered 64 analog inouts (1/2 way there!!)
Is there somewhere you could direct me that may be able to solve this & I'd appreciate any advice
I'm more than happy to build up some ADC/MUX combinations otomotif terbaru but am very weak in the python/C# area to be confident of achieveing any workable interfacing coding in a timely manner
I'm in the process of creating a Scratch project to interface to the real world where I need to monitor over 100 analog inputs.
My preference is to move away from using Scratch harga motor on the PC & use the Raspberry Pi - either way after reading many forums/visiting many web sites over the last few weeks - the best bet seems to be to interface the PC/Raspberry Pi to an Arduino unit & connect a shield with sufficient analog inputs. To date I have only been tips terbaru able to find a shield that offered 64 analog inouts (1/2 way there!!)
Is there somewhere you could direct me that may be able to solve this & I'd appreciate any advice
I'm more than happy to build up some ADC/MUX combinations otomotif terbaru but am very weak in the python/C# area to be confident of achieveing any workable interfacing coding in a timely manner
- astridutami
-
2 posts
How can I interface 100+ analog inputs for access by Scratch
<a href="http://ulasmotor.blogspot.com/">harga motor terbaru</a>
Last edited by astridutami (March 9, 2015 08:57:38)
- bobbybee
-
1000+ posts
How can I interface 100+ analog inputs for access by Scratch
I imagine this is a bit of a special case, so you will almost certainly need to build your own MUX / ADC based solution. The MUXes are pretty easily controlable: write a word to the select pin(s) connected to GPIO with no particular timing requirements. I'm not particularly familiar with ADC outputs, but again: connect Vcc and GND like normal expect to dedicated pins on the board, tie pins as usual, and connect all data pins to GPIO to be controlled by the microcontroller.
If that made any sense, great; if not, sorry, I only know 87% what I'm talking about haha. Also, look into the BeagleBone Black, it has 92 pins of which most (65?) of them can be used as GPIO, and it's about the price of a Pi.
If that made any sense, great; if not, sorry, I only know 87% what I'm talking about haha. Also, look into the BeagleBone Black, it has 92 pins of which most (65?) of them can be used as GPIO, and it's about the price of a Pi.
Last edited by bobbybee (March 9, 2015 13:33:24)
- SimpleScratch
-
500+ posts
How can I interface 100+ analog inputs for access by Scratch
What'd you've have to do is find an I2C ADC chip with say 16 channels and then plug 8 of them together on the 1 I2C bus but give each one a different address.
Assuming the Pi is OK with that then I've written ADC support into ScratchGPIO on the Pi so it would just be a case of writing a little bit of special code to deal with 16 chips!
But if you sent me 2 of them - I'd be willing to give it a go
I think you might run into problems with how fast you could expect updated readings though - whats the application?
Simon
Assuming the Pi is OK with that then I've written ADC support into ScratchGPIO on the Pi so it would just be a case of writing a little bit of special code to deal with 16 chips!
But if you sent me 2 of them - I'd be willing to give it a go

I think you might run into problems with how fast you could expect updated readings though - whats the application?
Simon
- bobbybee
-
1000+ posts
How can I interface 100+ analog inputs for access by Scratch
Whats the application?
^
Last edited by bobbybee (March 9, 2015 13:34:20)
- Discussion Forums
- » Connecting to the Physical World
-
» How can I interface 100+ analog inputs for access by Scratch