Arduino Micro Controllers
Arduino Micro Controllers
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.
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
-
- Posts: 4373
- Joined: February 28th, 2013, 3:23 am
- Location: Oklahoma, United States
Re: Arduino Micro Controllers
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
-
- Posts: 432
- Joined: September 26th, 2013, 4:57 pm
- Location: Kentucky
- Contact:
Re: Arduino Micro Controllers
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.MrGodin wrote: ↑July 10th, 2019, 10:57 pmBeen 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.
PM me if you need to contact me. Thanks to all the helpful people on this forum especially to Chili.
Re: Arduino Micro Controllers
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.
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
- krautersuppe
- Posts: 91
- Joined: September 14th, 2015, 10:58 pm
- Location: Istanbul
Re: Arduino Micro Controllers
I wonder if Chili got his A/C-project done https://forum.planetchili.net/viewtopic.php?f=3&t=954
DSU
Discord: dsu1, GitHub: https://github.com/DSpUz
Discord: dsu1, GitHub: https://github.com/DSpUz
-
- Posts: 4373
- Joined: February 28th, 2013, 3:23 am
- Location: Oklahoma, United States
Re: Arduino Micro Controllers
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
Re: Arduino Micro Controllers
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
Re: Arduino Micro Controllers
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
Re: Arduino Micro Controllers
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
Re: Arduino Micro Controllers
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;
Simple Array at least giving you size so you can loop it quite well
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;}
};
Curiosity killed the cat, satisfaction brought him back