From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.88.17 with SMTP id m17mr2763602iob.28.1516743036598; Tue, 23 Jan 2018 13:30:36 -0800 (PST) X-Received: by 10.157.65.183 with SMTP id p52mr570701ote.3.1516743036448; Tue, 23 Jan 2018 13:30:36 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.unit0.net!peer03.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!g80no2561501itg.0!news-out.google.com!b73ni8525ita.0!nntp.google.com!g80no2561494itg.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 23 Jan 2018 13:30:36 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a01:e35:8bf4:e690:f1fa:29c3:18b:8d4; posting-account=O3LyFwoAAACc1uh60ZcOUmAGdDmGsEcV NNTP-Posting-Host: 2a01:e35:8bf4:e690:f1fa:29c3:18b:8d4 References: <10c0eb19-4d5c-4ef2-b3a8-751ae3c5b530@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Raspberry Pi SenseHAT / AstroPi From: slos Injection-Date: Tue, 23 Jan 2018 21:30:36 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 4321 X-Received-Body-CRC: 555639876 Xref: reader02.eternal-september.org comp.lang.ada:50081 Date: 2018-01-23T13:30:36-08:00 List-Id: Le mardi 23 janvier 2018 18:40:16 UTC+1, Dmitry A. Kazakov a =C3=A9crit=C2= =A0: > On 2018-01-23 16:45, slos wrote: >=20 > > To play with Raspberry Pi I have a SenseHAT, renamed from AstroPi, whic= h is a HAT with some sensors : > > https://www.raspberrypi.org/documentation/hardware/sense-hat > >=20 > > Since it was designed to go in space, I would have thought an Ada libra= ry to be available... ;-) > > But I could not find one. :-( >=20 > Way too expensive and useless for automation purposes. Well, I just wanted to play with some sensors and there are some on this Se= nseHat which costs by the way less than 40 Euros. And connecting it to a PLC could be fun by allowing to control some process= / machine like with a Wii Remote : https://en.wikipedia.org/wiki/Wii_Remote > There are=20 > virtually thousands of different hats you cannot expect all of them=20 > supported. Of course since the HAT connector provides only signals like GPIO, I2C, SPI= , UART, you can connect whatever you want to it. And of course you can desi= gn your own. >=20 > Anyway for [semi-]serious use one usually designs a new one. E.g. for a= =20 > BeagleBone board our partner designed a hat with many A/D converters and= =20 > a tiger chip. This SenseHat is for discovering / fun / demo / what you can think of, and = isn't that expensive. And one can just plug it on top and use the provided = software to start playing. >=20 > The problem is that the architecture of ARM boards does not allow use of= =20 > modular components. A monolithic sensor/actuator board never has a=20 > chance to meet the requirements, so one must design it new each time. Or use one that fits with their needs. >=20 > > So what can be found is a Python library on top of a C++ one. >=20 > Actually I would expect a proper driver. A C library means it must run=20 > with root privileges. Not good. Why would you need root privileges to run a C library ? You have to set the proper rights to a user or group and that should suffic= e. >=20 > > But maybe I have missed something already done in Ada ? >=20 > What for? If you say that there is a C library, you can call it directly= =20 > from Ada. No, I said there is a C++ library and a Python binding on top. Actually the Python library uses the C++ library for some sensors and devic= es directly for joystick and framebuffer. >=20 > P.S. We could consider supporting it in our middleware, but as I said,=20 > at first glance it looks too expensive and much useless. It could allow some people interested in Ada language to play on an inexpen= sive target. Is it useless ? The Raspberry Pi was designed exactly for that purpose. Teaching and experi= ments for anyone interested in. > Then it does=20 > not scale other architectures. We usually support boards / protocols=20 > available for more that just Raspberry Pi. Raspberry Pi has a very bad=20 > call among customers. One can show it as proof of the concept but=20 > nothing more. >=20 > --=20 > Regards, > Dmitry A. Kazakov > http://www.dmitry-kazakov.de St=C3=A9phane