Page 1 of 2

Arduino Micro Controllers

Posted: July 10th, 2019, 10:57 pm
by MrGodin
Been on a bit of a change of pace with the Arduino Mirco Controller. Got a light sensor with a couple LEDs set up on a bread board. When the light reaches a certain threshold (darkness) it turns on the other LED. Am ordering some 5 volt relays and a thermo sensors to control my household fans when it gets too hot. Fun and exciting stuff.
I am writing a c++ COM Port wrapper to handle communications. I also have a UI written in c# as well.

Re: Arduino Micro Controllers

Posted: July 10th, 2019, 11:09 pm
by albinopapa
Nice, sounds fun.

Re: Arduino Micro Controllers

Posted: July 11th, 2019, 12:34 am
by Pindrought
MrGodin wrote:
July 10th, 2019, 10:57 pm
Been on a bit of a change of pace with the Arduino Mirco Controller. Got a light sensor with a couple LEDs set up on a bread board. When the light reaches a certain threshold (darkness) it turns on the other LED. Am ordering some 5 volt relays and a thermo sensors to control my household fans when it gets too hot. Fun and exciting stuff.
I am writing a c++ COM Port wrapper to handle communications. I also have a UI written in c# as well.
Fun stuff! I've also been playing around with my arduinos recently. Have you messed with the Ethernet shield and doing socket connections via the arduino? I wasn't a big fan of the com port method via usb so was considering connecting multiple arduinos to a ethernet switch and connecting that switch to my router.

Re: Arduino Micro Controllers

Posted: July 12th, 2019, 1:08 am
by MrGodin
No, but I have looked into the Wifi shields. I plan to implement one of those two. I've only been at this a couple weeks. So I've made some progress.
Lets me know if you get the Ethernet connected, would be nice to pick your brain on that.

Re: Arduino Micro Controllers

Posted: July 12th, 2019, 6:09 am
by krautersuppe
I wonder if Chili got his A/C-project done https://forum.planetchili.net/viewtopic.php?f=3&t=954 :D

Re: Arduino Micro Controllers

Posted: July 12th, 2019, 6:54 am
by albinopapa
Wow, 7 years in the making if not.

Re: Arduino Micro Controllers

Posted: August 6th, 2019, 12:37 am
by MrGodin
Well i have an update. Got a 16x2 LCD display to display temp readings, temp sensor, 4 bank 10 amp, 120 volt relay switches and am turning on and off my fan based on temp readings ( using just 1 relay switch) ... so thats a start

Re: Arduino Micro Controllers

Posted: August 6th, 2019, 12:40 am
by MrGodin
I've also converted a ATX PC Power supply to a work bench Power Supply. Mounted binding posts to the chassis of the power supply, connected the power leads ( 3.3 volt, 5 volt and 12 volt ) an LED for standby power indicator, another LED for power on (grey wire for when the Power Supply sends a signal that all voltages are good). Put in a switch (as if turning on the computer by putting green wire to ground using the switch).. and last but not least connecting the 3.3 volt sensor lead to the 3.3 wires (to ensure an absolute 3.3 volt as the most sensitive stuff needs) and whammo .. fun stuff

Re: Arduino Micro Controllers

Posted: August 6th, 2019, 1:03 am
by MrGodin
Ohh and .. connected a USB female plug to the 5 volt of the Power Supply to, you guessed it, power the Arduino and charge my phone

Re: Arduino Micro Controllers

Posted: August 6th, 2019, 1:15 am
by MrGodin
The beauty of all this is the Arduino IDE can be coded with c++ up to c++ 11. (for the most part, dynamic memory is limited at best) .. so I can do templates, classes ect .. but things that are dynamic allocated (std::vector) for instance well .. forget it. so I just made my own array structure;

Code: Select all

template<typename T, unsigned int count>
class Array
{
unsigned int m_count;// not sure i need this
public:
 T elements[count];
 Array(){m_count = count;}// not sure if i need this
 unsigned int size()const {return m_count;}
 
 
};
Simple Array at least giving you size so you can loop it quite well