[chbot] Robotics Group meeting, Monday 14 May 2018, 630pm, 5 Idris Road

Trevor Wignall zl3adz at gmail.com
Tue May 15 05:09:47 BST 2018


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ourshack.com/pipermail/chchrobotics/attachments/20180515/49269fbf/attachment.html>


More information about the Chchrobotics mailing list