Arduino Micro Controllers

The Partridge Family were neither partridges nor a family. Discuss.
MrGodin
Posts: 721
Joined: November 30th, 2013, 7:40 pm
Location: Merville, British Columbia Canada

Arduino Micro Controllers

Post by MrGodin » 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.
Curiosity killed the cat, satisfaction brought him back

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: Arduino Micro Controllers

Post by albinopapa » July 10th, 2019, 11:09 pm

Nice, sounds fun.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

Pindrought
Posts: 432
Joined: September 26th, 2013, 4:57 pm
Location: Kentucky
Contact:

Re: Arduino Micro Controllers

Post by Pindrought » July 11th, 2019, 12:34 am

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.
PM me if you need to contact me. Thanks to all the helpful people on this forum especially to Chili.

MrGodin
Posts: 721
Joined: November 30th, 2013, 7:40 pm
Location: Merville, British Columbia Canada

Re: Arduino Micro Controllers

Post by MrGodin » July 12th, 2019, 1:08 am

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.
Curiosity killed the cat, satisfaction brought him back

User avatar
krautersuppe
Posts: 91
Joined: September 14th, 2015, 10:58 pm
Location: Istanbul

Re: Arduino Micro Controllers

Post by krautersuppe » July 12th, 2019, 6:09 am

I wonder if Chili got his A/C-project done https://forum.planetchili.net/viewtopic.php?f=3&t=954 :D
DSU
Discord: dsu1, GitHub: https://github.com/DSpUz

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: Arduino Micro Controllers

Post by albinopapa » July 12th, 2019, 6:54 am

Wow, 7 years in the making if not.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

MrGodin
Posts: 721
Joined: November 30th, 2013, 7:40 pm
Location: Merville, British Columbia Canada

Re: Arduino Micro Controllers

Post by MrGodin » August 6th, 2019, 12:37 am

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
Curiosity killed the cat, satisfaction brought him back

MrGodin
Posts: 721
Joined: November 30th, 2013, 7:40 pm
Location: Merville, British Columbia Canada

Re: Arduino Micro Controllers

Post by MrGodin » August 6th, 2019, 12:40 am

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
Curiosity killed the cat, satisfaction brought him back

MrGodin
Posts: 721
Joined: November 30th, 2013, 7:40 pm
Location: Merville, British Columbia Canada

Re: Arduino Micro Controllers

Post by MrGodin » August 6th, 2019, 1:03 am

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
Curiosity killed the cat, satisfaction brought him back

MrGodin
Posts: 721
Joined: November 30th, 2013, 7:40 pm
Location: Merville, British Columbia Canada

Re: Arduino Micro Controllers

Post by MrGodin » August 6th, 2019, 1:15 am

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
Curiosity killed the cat, satisfaction brought him back

Post Reply