[chbot] Robotics Group meeting, Monday 14 May 2018, 630pm, 5 Idris Road
Synco Reynders
synco.reynders at gmail.com
Tue May 15 07:45:26 BST 2018
Hi Paul (from Oxford) + Guys,
From what I could gauge Paul was after a simple solution that he could
understand, build and maintain. So my idea would be to point him in the
direction of what to buy and how to wire it up, rather then designing a
custom PCB design.
So following is an outline of the building blocks I'd use for my solution:
HARDWARE
--------
Ethernet/UDP i2c + power
X-Plane <============> RaspberryPi <----+--> Panel1 <--> PanelX...
|
+--> Panel2 <--> PanelX...
:
* Each panel should be self-contained, and have a common connector (think
ethernet connector + cable is good idea)
* They can be in a combination of daisy-chaining or star-configuration, to
suit panel layout.
A search for "i2c" on TradeMe is probably a good starting point for
available I2C modules... eg.
https://www.trademe.co.nz/electronics-photography/other-electronics/electronic-components/other/auction-1627424038.htm?rsqid=a42479ffc5a54d57a2f2d3102e0a888e
https://www.trademe.co.nz/electronics-photography/other-electronics/electronic-components/other/auction-1628302081.htm?rsqid=a42479ffc5a54d57a2f2d3102e0a888e
https://www.trademe.co.nz/electronics-photography/other-electronics/electronic-components/other/auction-1632177890.htm?rsqid=a42479ffc5a54d57a2f2d3102e0a888e
https://www.trademe.co.nz/electronics-photography/other-electronics/electronic-components/other/auction-1628152427.htm?rsqid=a42479ffc5a54d57a2f2d3102e0a888e
* Plan what I2C module are needed and list the used addresses
* the RPI / linux has good I2C diagnostics. (apt install i2c-tools)
* https://github.com/ControlEverythingCom/Raspberry-Pi-I2C-Python
* Run Python on the RPI to do the polling of the I2C modules (switches and
output lamps etc) and sending the associated UDP packet to X-Plane
* Python to X-Plane via UDP (https://github.com/luizcantoni/x-pi)
* Here is the list of XPlane parameters that can be read/changed: (suspect
most are in sim/cockpit2/...)
http://www.xsquawkbox.net/xpsdk/docs/DataRefs.html
* UDP protocol for reference (
http://www.nuclearprojects.com/xplane/xplaneref.html)
Might make a mini instrument panel for myself, :-)
Hope this helps,
/s
On 15 May 2018 at 16:09, Trevor Wignall <zl3adz at gmail.com> wrote:
> Paul from Oxford expressed interest in ways of connecting multiple inputs
> (switches and potentiometers) to the likes of an Arduino, rather than
> having to use multiple Arduinos.
>
> This is actually a common and easily solved problem. In fact there are
> multiple solutions, using different approaches with different advantages or
> disadvantages, using multiplexers, I2C and serial expanders. There are a
> number of useful integrated circuits (ICs) which could be useful, including
> members of the 4000 series of CMOS ICs (refer to https://en.wikipedia.org/
> wiki/List_of_4000_series_integrated_circuits ). Common ICs include the
> 4051 multiplexer (also known as a one of eight selector), the 4094 serial
> to parallel shift register, and the 4021 parallel to serial shift register.
> All three of these ICs will run off 5Volts and are cheap, readily
> obtainable, 16 pin devices.
>
> The 4051 is useful for allowing up to 8 digital or analog signals to be
> scanned using just one digital or analog input of the Arduino, with 3
> digital output lines from the Arduino being used to select which of the 8
> inputs to read. It can also be used to select one of up to 8 output lines
> to drive - more on this later. The same three address lines can be used to
> drive multiple 4051 selectors.
>
> The 4021 is useful for allowing up to 8 digital signals to be read in turn
> using just one digital input of the Arduino, but requires only two output
> lines from the Arduino - a "Clock" line and a "Strobe" or "Load" or "Reset"
> line, which is used to restart the scan process. Multiple 4021s can be
> wired in series so the same two output and one input lines can be used to
> scan 16, 24, 32,... digital signals.
>
> The 4094 is used to drive up to 8 digital outputs (such as indicator LEDs)
> using three digital outputs from the Arduino - a "Data" line, a "Clock"
> line and a "Strobe" or "Load" line. Again multiple 4094s can be wired in
> series so the same three outputs can be used to drive 16, 24, 32,...
> digital outputs.
>
> But wait - there's less!
>
> The same "Clock" and "Load" or "Strobe" lines can be used to drive both
> 4094 and 4021 shift registers at the same time.
>
> A final trick - multiple switches can be scanned by wiring them into a
> matrix such as an 8x8 array or an 8x16 array. If two switches on the same
> row or column can be closed at the same time, diodes can be used to allow
> the sense of each switch to be determines without "Phantom keys". There is
> no reason an 8x16 array cannot be scanned using a 4094 to drive a 4051
> which selects one of 8 rows, and a pair of 4021s to read up to 16 switches
> on that row - or the 12 individual switches of a 12 position rotary switch.
> And the same outputs of the 4094 can be used to drive the address inputs
> of a second 4051 which can scan 8 analog inputs. The remaining 5 outputs of
> the 4094 can be used to drive indicator LEDs and a second 4094 can be added
> to drive another 8 LEDs if necessary All of this can be achieved with about
> 5 ports of the Arduino - an analog input, a digital input and three digital
> outputs including a Clock and a Strobe which can also be used to drive
> other circuitry.
>
> There are other approaches, but this will give an idea of what sort of
> things can be done.
>
> Cheers
> Trevor
>
>
>
> On Mon, May 14, 2018 at 10:21 PM, Mark Atherton <markaren1 at xtra.co.nz>
> wrote:
>
>> Hello everyone,
>>
>> Excellent turnout with 29 attendees, and lots of huddles-of tech-talk.
>> $38 + change (in gold, and flat-money) collected and transferred into the
>> robotics loose-change jar (for later banking).
>>
>> Possibly the largest number of new faces turned up this evening; hope you
>> enjoyed yourselves, please come back and join us at any meeting.
>>
>> Quick reminder: equipment donations are welcome for the trading table,
>> but no CRT based product, printers, toner or items that are likely to be a
>> disposal burden. All sales from the trading table should go into the brown
>> box on the wall, and are directly for the benefit of our host club, NZART
>> Branch 05.
>>
>> With thanks on behalf of the group,
>>
>> Mark Atherton
>>
>> ============
>>
>> William brought along a home-made hardware demo for interfacing a
>> Raspberry Pi to the outside world, mainly with the interest of connecting
>> to a UPS, using opto-isolation. He also brought along an Arduino attached
>> to temperature and humidity sensors. For output, the unit connected to LCD
>> and 7 segment LED displays.
>>
>> Darran demoed a very impressive image recognition software with a web cam
>> for image capture, and Python with OpenCV for processing. Thanks also go to
>> Col for saving the day by bringing a uHDMI cable and adaptor, allowing
>> Darran’s laptop to be connected to the video projector.
>>
>> Paul from Oxford brought along quite an impressive start on his
>> flight-simulator-in-the-garage. He has moved from a non-technical
>> background into this new hobby, and has made significant progress in this
>> multiple-skill project, including 3D design and printing, Arduino
>> interfacing, and is making a start on interface programming.
>>
>> Levi and Seb gave an interesting talk about adventures with 3D design and
>> printing. They have invested a huge amount of time and effort learning
>> about mechanical design and printing, as well as real-world issue. Well
>> done.
>>
>> Spencer talked about his waste-water management system. Latest hardware
>> is assembled to a very high standard. He also mentioned interfacing to a
>> 4-20mA sensor.
>>
>> Continuing from a discussion initiated by Andy G several weeks ago on the
>> email reflector, Mathew gave an interesting talk about Kismet. This is a
>> software network detector, packet sniffer, and intrusion detection system.
>>
>>
>> _______________________________________________
>> Chchrobotics mailing list Chchrobotics at lists.ourshack.com
>> https://lists.ourshack.com/mailman/listinfo/chchrobotics
>> Mail Archives: http://lists.ourshack.com/pipermail/chchrobotics/
>> Meetings usually 3rd Monday each month. See http://kiwibots.org for
>> venue, directions and dates.
>> When replying, please edit your Subject line to reflect new subjects.
>
>
>
> _______________________________________________
> Chchrobotics mailing list Chchrobotics at lists.ourshack.com
> https://lists.ourshack.com/mailman/listinfo/chchrobotics
> Mail Archives: http://lists.ourshack.com/pipermail/chchrobotics/
> Meetings usually 3rd Monday each month. See http://kiwibots.org for
> venue, directions and dates.
> When replying, please edit your Subject line to reflect new subjects.
>
--
Synco Reynders
m: +64 21 1825332
e: synco.reynders at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ourshack.com/pipermail/chchrobotics/attachments/20180515/75c1bfde/attachment-0001.html>
More information about the Chchrobotics
mailing list