Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PCB PMOD Request: Realtime clock with PWR switch (tmrIO) #40

Open
chili-chips-ba opened this issue Nov 3, 2024 · 12 comments
Open

PCB PMOD Request: Realtime clock with PWR switch (tmrIO) #40

chili-chips-ba opened this issue Nov 3, 2024 · 12 comments
Assignees
Labels
Assembled Board is assembled PCB request Proposal for new PCB designs

Comments

@chili-chips-ba
Copy link
Owner

ULX3S RTC feature is very cool and unique. But, since not needed for many use-cases, we believe it is better to offer it as an add-on PMOD card.

As Digilent already has such a card:

  • https://digilent.com/reference/pmod/pmodrtcc/start
    ours could also come with a relay that allows turning on/off a 2 Amp / 250V consumer. The availability of a power switch would open the RTC to a whole new set of apps without needing additional PMODs
@chili-chips-ba chili-chips-ba changed the title PCB PMOD Request: Realtime clock PCB PMOD Request: Realtime clock with PWR switch Nov 3, 2024
@chili-chips-ba chili-chips-ba added the PCB request Proposal for new PCB designs label Nov 6, 2024
@chili-chips-ba chili-chips-ba changed the title PCB PMOD Request: Realtime clock with PWR switch PCB PMOD Request: Realtime clock with PWR switch (tmrIO) Nov 20, 2024
@goran-mahovlic
Copy link
Collaborator

I can add relay but maybe having 220V is not super safe options.
Maybe instead we could have sold state relays for some DC voltages - like 12V/24V/48V

Here are the options on the mouser for the solid state relays

image

@chili-chips-ba
Copy link
Owner Author

We have a request from multiple lycée and high school embedded clubs for an Intelligent School Bell project 🛎️. As the school bells operate on 220V, the relay would allow us to build it without much additional ado. The relay itself provides isolation. The terminal screw-in block should also be on an isolated part of the PCB.

That said, now that the first intended app is known, put your thinking cap💡on, looking to address this need using the most appropriate means...

@goran-mahovlic
Copy link
Collaborator

goran-mahovlic commented Nov 29, 2024

You know that emard was using 433MHz on board antenna for such purposes?

There are lots of cheap 433MHz relay modules on the market

https://robu.in/product/generic-12v-one-channel-rf-wireless-relay-module-with-remote-control/

and just wire from FPGA pin as 433MHz transmitter

There is also bit more expensive solution on 433MHz - https://botland.store/sonoff-wifi-intelligent-drivers/16199-sonoff-rf-r2-230v-relay-rf-433mhz-wifi-android-ios-switch-6920075775709.html

I also have LoRa PMOD - and there are some LoRa solutions that could be used.

https://github.com/goran-mahovlic/ulx3s-extensions/blob/master/pic/LoRa_Front.png

It can be 433MHz or 866MHz

And here is one of the receivers: https://www.makerfabs.com/maduino-lora-radio-433m-868m-915m.html

https://www.makerfabs.com/4-channel-lora-relay-10a.html

That way you have 220V away for the board you are programming.

But I can also do one PMOD with 220V AC solid state - that is maybe an hour of work.

@chili-chips-ba
Copy link
Owner Author

Granted, they don't really need an FPGA for this intelligent school bell. Any micro-controller would do. However, the idea is to make it simple for them to start porting their existing embedded projects to FPGA. RF would complicate that task.

We therefore vote for PMOD with 220V AC solid state relay.

@goran-mahovlic
Copy link
Collaborator

Granted, they don't really need an FPGA for this intelligent school bell. Any micro-controller would do. However, the idea is to make it simple for them to start porting their existing embedded projects to FPGA. RF would complicate that task.

We therefore vote for PMOD with 220V AC solid state relay.

Good, I will put 2x solid state relay on PMOD - will try to find SMD version so that bottom side does not have pins you can touch.

I will put it on 4 layer board with 220V traces in the middle of the board. Maybe even add some holes for printed plastic cover over relays.

@chili-chips-ba
Copy link
Owner Author

... you can also take clues from the RF solutions you referenced earlier in the thread. Essentially, if those guys can put their sensitive electronics next to power relays, so can we.
image

@goran-mahovlic
Copy link
Collaborator

I am not afraid to kill electronics - I was more referring to student safety :)

@goran-mahovlic
Copy link
Collaborator

tmrIO

@chili-chips-ba
Copy link
Owner Author

How about posting schematics, esp. related to relay drive circuit. What is the part on the bottom?

@goran-mahovlic
Copy link
Collaborator

Schematic is up to date:

https://github.com/intergalaktik/Extension_Boards_for_Olimex_GateMate/blob/main/tmrIO/tmrIO.pdf

Bottom part you see is Battery holder, as we want RTC to preserve time even if we power OFF board.

I am using 5V relay so we have FPGA_VCC to 5V STEP-UP relay has 40 mA coil current so it is not power hungry.
It can handle - 250 VAC, 30 VDC - 3A

https://eu.mouser.com/ProductDetail/Omron-Electronics/G5NB-1A-HA-DC5?qs=xZ%2FP%252Ba9zWqYlwXQmF0rNMA%3D%3D

I decided to go with only BJT NPN transistor that should be able to start relay even if we use 1.8V.

https://eu.mouser.com/ProductDetail/Nexperia/MMBT3904215?qs=LOCUfHb8d9s%2FW6hzAJGDbw%3D%3D

image

But as there are many options I am also open to suggestions....

@goran-mahovlic
Copy link
Collaborator

Board is assembled, relays are clicking, I2C is not tested ...

@chili-chips-ba
Copy link
Owner Author

Do you have RTL for testing I2C?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Assembled Board is assembled PCB request Proposal for new PCB designs
Projects
None yet
Development

No branches or pull requests

2 participants