Need some help with my first Arduino-based project in a few years...
The ultimate goal here is to accomplish one thing - transmit a UDP packet when a contact closure is detected.
The first thing I need help with is figuring out how to register the contact closure, basically when the door is in the open or closed position the packet would be different.
Secondly, I need to adapt this to be on a custom circuit board - not just an arduino with an ethernet shield. Basically take the ATMEGA328 and the minimum required components to accomplish the task I need to.
Any help you can provide would be greatly appreciated!
Secondly, I need to adapt this to be on a custom circuit board - not just an arduino with an ethernet shield. Basically take the ATMEGA328 and the minimum required components to accomplish the task I need to.
Why? If you have to ask questions, I'd advise you not to do it. The big advantages of the Arduino compared to a random microprocessor is that the final microcontroller board is the programmer and the development board, and the accompanying IDE. As you deviate, you'll have to put-in more time, more effort, you'll have more troubles, and possibly run-into more cost.
Plus, it's serviceable... If the Arduino dies in a couple of years (which actually shouldn't happen) you just get another one and re-program it. If you have a custom board that may not be so easy unless you build spares.
A $4 WeMos D1 mini could do this without any extra hardware,
except for maybe a cellphone charger with USB lead for power.
Assuming you have WiFi near.
Leo..
I was thinking the same - WeMOS or NodeMCU (or anything else based on the ESP8266), and use the built-in WiFi. If you have WiFi around it's the more sensible solution than an Arduino board.
DVDdoug: Why? If you have to ask questions, I'd advise you not to do it. The big advantages of the Arduino compared to a random microprocessor is that the final microcontroller board is the programmer and the development board, and the accompanying IDE. As you deviate, you'll have to put-in more time, more effort, you'll have more troubles, and possibly run-into more cost.
Unfortunately, I don't have the room for a full Arduino and Ethernet shield in the enclosure. Space constraints are the only reason I have to be moving in the direction of a custom PCB. I'm planning on using an ATMEGA328 with the arduino bootloader so I can breadboard the whole thing before I commit to a custom PCB.
Well, if it is for the fun and the prices of learning something new go for the custom, if it's for the space, look at the wemos, it will be smaller than your custom pcb....