Hubduino - get started

Hello,
I'm looking for a 'get started' tutorial for hubduino. Basically, i want to know step by step (which arduino to buy, which setup I need and where found it, how to connect sensor to arduino, etc) to be able to connect a Open door sensor or Motion detection sensor by cable. (cable between sensor and arduino, and ethernet between arduino and hubitat)
I never use bedore arduino but i have some skills programming :smiley:

Is there some topic than can help me? (i search around the forum and youtube but i don't find nothing :confused: )

thanks in advance

I’m not sure you’ll find anything that’s as detailed as what you’ve asked for, I believe @ogiewon’s hubduino documentation assumes some prior level of familiarity with Arduino use.

But he would be the guy to ask.

2 Likes

@embds - It would be very helpful if you would explain a little more about what your specific project goals are, please. Without knowing what you'd like to accomplish, it is very difficult to suggest any specific hardware.
Also, what type of programming experience do you have?

There are many, many Arduino tutorial websites available to help get you started. Experience in C and/or C++ programming would be extremely beneficial, especially if you intend to create anything somewhat complicated.

The HubDuino ReadMe is fairly detailed, but does assume at least a beginner's understanding of how to use the Arduino IDE and associated sketches and libraries.

So, while I am happy to help, I believe the next move is yours to take some time to write up and shared a detailed explanation of what you're trying to accomplish.

2 Likes

In that case you'd be best served by going to the arduino website and checking out their tutorials?
https://www.arduino.cc/en/Tutorial/HomePage

1 Like

Hello @ogiewon,
Thank you for your reply :slight_smile:
My goal is to use motion sensor and door open sensor with cable (instead of RF protocols, for security purposes) on Hubitat.
So I only want to be able to connect different sensor and manage them on hubitat.

To be honest I don't realise that the Hubduino readme(ST_Anything/README.md at master · DanielOgorchock/ST_Anything · GitHub) was talking about different arduino versions to take and how to setup it. In fact, my only doubt right now is how to connect sensor to arduino but it will be good with some arduino get started tutorial ! :slight_smile:

Thanks a lot for your reply. I'm on the good direction now and I will be able to do something :smiley:

The simplest sensor to connect to a microcontroller, using HubDuino, is a simple magnetic reed contact sensor. These sensors are a simple on/off switch, based on the presence of a nearby magnet.

By default, my various ST_Anything sketches utilize a feature of most microcontrollers known as “internal pullup”. This allows for the simplest wiring diagram. Simply connect one wire from the magnetic reed switch to the board’s GND pin. Connect the other wire to the GPIO pin that was assigned to the IS_Contact device in the Arduino sketch’s setup() routine.

At top top of each ST_Anything’s device’s .cpp file, you will find the documentation for that device. You can configure various settings, including whether or not the internal pullup feature is enabled or not for digital input style devices.

2 Likes