On 22.10.16 07:26, Gene Heskett wrote: > 2nd Q is only semi-related, but I can get, from gearbest, an arduino mega > r3 with a pile of 10 bit analog inputs for a tenner. See: > > <http://www.gearbest.com/development-boards/pp_18651.html>
The ATmega2560, with 256 kiB of flash, is overkill for a simple monitor, a cheaper UNO is ample, and a bit smaller. The UNO uses the ATmega328P, which is the most common Arduino CPU, especially at the modest end. (Which may increase the chances of finding some off-the-rack software which does most of what you want, and needs less porting¹.) I haven't used the USB on the UNO for communication by the application, but it's no biggie: http://www.ladyada.net/learn/arduino/lesson4.html > Which, if it can talk to linuxcnc over the usb cable, might be able to > warn me if the motor is being lugged excessively and getting too hot > since its quite well out of sight and mind where its hung. Theres a lot > more it could do, I just haven't conjured up the use scenario yet. :) That could be a monkey trap though, - a feast of specification creep, and it's so easy to topple into a pit of lots of little bits to develop, both firmware and hardware. OK, it's easy to hook up e.g. a LM335s to a couple of analogue inputs, and cobble up an analogue front end for measuring power, e.g. http://meettechniek.info/diy-instruments/arduino-wattmeter.html The code at: http://meettechniek.info/diy-instruments/arduino-wattmeter-code-v1-0.txt might be an adequate seed corn for your sampling application. > But, mpja.com also has a $2.49 module #31588-MP, that could send an > overheat alarm bit directly to a gpio pin on a 5i25 & that looks a lot > simpler to do. Since these spindle bearings are bronze, an overtemp > alarm on each because they've not been lubed recently could also be > handy. And in the same vein, a comparator on a current shunt can drive another pin when motor current goes too far north. > Is such an effort worth it? KISS, 'cos there are too many projects for anyone to finish them all. (Except when the journey is the object. ;-) ¹ I program my ATmegas in 'C' and assembler, having never tangled with that "sketch" stuff, so peripheral hardware variations across the ATmega variants can be a bit more intrusive, perhaps. Erik (Who last night had a 40m high 1.8m wide Redgum fall across the creek, the road, my driveway, and the front garden, ending 8m from the bedroom window. It was after midnight, so I went back to sleep without looking. It was a quite sufficiently frightful mess this morning, but a council crew with chainsaws and excavator sliced, diced, and packed it all into three truckloads in four hours. I wouldn't have had it done in a week. The trunk that came across the drive was only 1m in diameter, but still a lot of dicing. And the mess of branches, Oof! Oh, and a 60 cm diameter, 20m high Stringybark fell in the back yard the night before. Even after the high winds, the 146 mm of rain in the last 3 weeks is too much for the eucalypts to hold well in the soggy clay, with no taproots.) ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users