Just a secondary school Arduino Club member, let's say, you try to find a simplest, but powerful enough Arduino project idea for your gettting started.
So, now you are building the simplest one of Arduino basic projects.
You are confident to show your idea even if only a girl in Arduino Club.
After connecting keyboard, mouse and HDMI cable.
you perfect directly online plug Arduino UNO into Rubix A10. So sorry, ATTENTION male pins!
You quickly click Arduino IDE when desktop showing, and select the simplest sketch => blink.
Wow, it works!
Shortcut Ctrl+Alt+T, You open LXTerminal, and input command line,
ip addr
get ip, such as, 192.168.1.69,
you begin double check whether apache web server works good.
So far, you still do nothing even if you so simply show a powerful apache web server,
totally all of your clickings are out of box running Rubix A10 as a powerful Linux server.
So what is real next? How to show a simplest, but still power enough Arduino starter project example?
You smart pick out a temperature sensor from OSEPP Arduino 201 Starter Kit.
You open iMac terminal, input command line, such as,
ssh 192.168.1.69 -l root
and input password.
so easy remote control Rubix A10.
Yes, you are good at changing permissions on /dev/ttyS1,
which is a common Linux tty device to communicate with Arduino compatible board.
You try to show us a simplest idea of Arduino basic projects for reading sensor data.
select Sketchbook => OSEPP_201K => Reading Temperature
and upload sketch using short cut Ctrl+U in Arduino IDE.
Now you edit a small php file, (yes, you so like php which flexible and powerful enough) and save it, such as /var/www/rubix201_1.php
<?php
//init communication over ttyS1
$ttyS = "/dev/ttyS1";
$speed = "9600";
$stty = "stty -F".$ttyS." raw speed ".$speed." -ignpar cs8 -cstopb -echo";
exec($stty);
//read sensor data and show online
$fp = fopen($ttyS, "r");
echo fread($fp, 12);
fclose($fp);
?>
Now, Safari in iPhone show it.
You may open 80 port on router firewall, so let public network access your sensor data.
you like totally control all your data with zero privacy risk, really don't like privacy data filter by other remote servers.
So far, you still do nothing even if you so simply show a very common and open source tech based on popular web server.
you stay at the beginning of Arduino projects.
The core question is, how embed or combine common event programming and OOP tech into any Arduino projects development?
A very good material about Arduino low level ISR tech from Nick Gammon's notes, thanks a lot, Nick.
ISR, which almost like popular client side language event programming, such as javascript, Flex.
and if it is possible, we can simply make any Arduino object with simple {} supported by Arduino compiler then with flexibly object expando,
so, when we code Arduino sketch with these polular tech, we can build a lot of amazing projects, such as large complex LED control system, motion control system.
Any further idea or solution about it? thank you.