Moduł 14 przycisków - rozszerzenie

Post Reply
Bartek
Posts: 326
Joined: 14 Jul 2011, 19:36
Location: Wrocław
Contact:

Moduł 14 przycisków - rozszerzenie

Post by Bartek »

Od długiego już czasu myślę nad jakimś rozszerzeniem do modułu 14 przycisków, który w zasadzie teraz stał się pełnoprawnym modułem I/O, bo można w nim włączyć obsługę LED i używać do sterowania czymkolwiek. Tak samo jak i wejścia, które można podpiąć do różnych czujników, od kontaktronów w drzwiach i oknach, przez czujniki ruchu, dymu, oświetlenia itp.

Przez rozszerzenia rozumiem coś, co pozwoli podpiąć do modułu coś więcej niż tylko 30cm przewodu zakończonego przyciskiem. Wiadomo, że trzeba je zabezpieczyć transilem, czy transoptorem, czasami jako wyjście można zastosować mosfeta do sterowania większym prądem itp.

Popełniłem kiedyś pełnosprawną płytkę dedykowaną (z takimi rozszerzeniami) w którą był wpięty moduł 14 przycisków, ale minus takiego rozwiązania jest taki, że dedykowana płytka jest stała i nie można nic w niej zmienić. Jak mi przyjdzie ochota podpiąc jeszcze jeden czujnik to zaczyna się kabelkologia, albo robienie nowej płytki dedykowanej.

Dlatego myślałem o czymś takim, co by można było w dowolnej chwili rozbudować. Np. mam w wc moduł przycisków, który obecnie ma podpięte tylko dwa czujniki (kontaktron od drzwi i czujka ruchu) - to akurat śmiga jeszcze na pająku i płytce uniwersalnej bo nie mam czasu się tym zająć :D. Póki działa, jeść nie woła.
No ale teraz chciałbym dodać czujnik zbliżeniowy do toalety i np czujnik dymu. Bez dziergania w kabelkach i płytkach się nie obejdzie.

Chodzi mi zatem o taki zestaw kilku dedykowanych minipłytek zawierających potrzebne elementy umożliwiające wpięcie jakiegoś wejścia przez transoptor, czy przez transil odkłócający dłuższe przewody, czy np podpięcia jakiegoś układu wraz z zasilaniem z magistrali Hapcanowej albo z zewnętrznego źródła. Coś na zasadzie takiej płyty głównej na której siedzi moduł przycisków, ale do każdego wejścia można wpiąć minipłytkę dedykowaną do jakiegoś zadania.

Np czujnik ruchu potrzebuje zazwyczaj zasilania np. 5V i ma wyjście, które podaje stan wysoki. Można by wtedy wpiąć w płytę główną taki minimodulik, który ma np 3 wyjścia śrubowe, z GND, +5V, IN a do tego tani czujnik ruchu za 5 zł i gotowe.

Kiedyś myślałem jeszcze nad takim równoległym łączeniem jakby kolejnych modułów (i nawet zacząłem projektować), ale taka płyta główna z kartami rozszerzeń wydaje się ciekawsza. Co myślicie? Czy jest ktoś chętny do pomocy w rozwoju takiego ustrojstwa? Może Jacek? :wink:
Jacek
Posts: 561
Joined: 17 Feb 2007, 18:00

Re: Moduł 14 przycisków - rozszerzenie

Post by Jacek »

Pomysł ciekawy, ale będę miał problemy, żeby mocno się zaangażować. Może zrobić to w ramach Hapcanuino? Mógłbym służyć radą.
Regards
Jacek
Bartek
Posts: 326
Joined: 14 Jul 2011, 19:36
Location: Wrocław
Contact:

Re: Moduł 14 przycisków - rozszerzenie

Post by Bartek »

Wsparcie radą to też wsparcie :). Jak coś będę miał to podrzucę do weryfikacji. W pierwszej kolejności raczej zrobiłbym pod moduł przycisków.
JL85FR
Posts: 7
Joined: 06 Jul 2021, 07:28
Location: France

Re: Moduł 14 przycisków - rozszerzenie

Post by JL85FR »

Hi Bartek,
This topic seems to be a bit old, but never mind.
Maybe some others could be interested.

if I have well understood the google translation of your post, I give an idea of a product I'm currently developing, I don't know if it can apply to your needs.
the board will have only 4 inputs and 4 outputs, but open collector outputs through uln2003, and possibility of having a +12 or other voltage available on the input connector, for instance to power sensors or other data acquisition devices.
the SFH5711 onboard light sensor can be not installed, a 2 ways header can be used to input any other analog signal, assuming that resistances arround the op amp are adapted to the expected result.

the board (52x40mm) will fit into a wallmount box, and a 4 ways connector allows expansion to other similar boards to add for instance a motion sensor (usually needing a +12V supply)

usually, you fit only 2 buttons into a small wallmount box, if more needed, a second board can be chained (with another CANbus ID)
I attach the preliminary schematics (SFH5711 is not yet added)

Maybe it would be interesting to externalize the I2C bus, in order to connect any type of converters or I2C devices...

I also would like to ask, is it possible for all of you, forum users, please to post in English, the project is likely to be interresting a lot of people not speaking polish ... all over the world !
many thanks
Attachments
components top measure.JPG
schematic-H.JPG
Bartek
Posts: 326
Joined: 14 Jul 2011, 19:36
Location: Wrocław
Contact:

Re: Moduł 14 przycisków - rozszerzenie

Post by Bartek »

Interesting device. Did You build one?

I've made one extension board for the button 14 device but it has it's dedicated functions built in. For example, a 3 wall
buttons, one IR, and a door open/close sensor. The board is designed just for these three functions, and my goals is to make an easy expansion board with slots for a extensions "cards".

I mean, in some time I want to add another motion detector, so the dedicated board is not an option, but the board with those slots could be easy expand with a little card/adapter for connect an IR sensor. It should deliver 12V DC, has an overvoltage protection and so on.
JL85FR
Posts: 7
Joined: 06 Jul 2021, 07:28
Location: France

Re: Moduł 14 przycisków - rozszerzenie

Post by JL85FR »

sorry for my late reply, I didn't receive a usual email , maybe the 'notify me' was not checked !
I have not yet produced the board, but I will do, before the end of year.
I still have the SFH5711 from Osram to place on the pcb. I wanted to detect the daylight luminosity, but the logarithmic sensor is better to use than the standard linear Op amp. I made some tests with a standerd op amp and photodiode, but the sensor is disturbed when the lamp is activated (with a movement detector) there will be some code to add to the firmware probably.
I was wondering if externalizing the I2c pins could be a good idea, provided that I can find space for 4 additional pins for a header. I could use J3 and forget the temperature sensor, add one pin the the header and there will be enough space on the pcb.
Via I2C, there is a lot of possibilities to add I/Os. I would output the 5V power, GND and I2c 2 lines.
the problem for such a small board is the lack of space, because I made the priority on the slide and spring connectors.
the board provides +12V assuming the switching regulator is installed with the appropriate resistors pair.
if you have other remarks, please do not hesitate...
JL85FR
Posts: 7
Joined: 06 Jul 2021, 07:28
Location: France

Re: Moduł 14 przycisków - rozszerzenie

Post by JL85FR »

hello,
I have added the I2C connectivity to the design, and have ordered a few pcb, I will get them within a few days.
I attach the new schematics and a general diagram with i2c devices examples.
with the i2c expansion connector you can imagin many extensions.
it is the maximum that can be done on the small surface of the card (it must fit into a wall box)
Attachments
schematic.JPG
i2c applications
i2c applications
components top.JPG
Post Reply