tag:blogger.com,1999:blog-88839860787656823682024-03-03T20:58:39.721-08:00Microcontroller Embedded DesignEmbedded Software and Hardware design: Hardcore I/O circuit interfacing ,Open Source Embedding Design,Data protocol coding and porting.E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.comBlogger35125tag:blogger.com,1999:blog-8883986078765682368.post-10785102827145385862020-10-11T20:22:00.003-07:002020-10-11T20:37:01.774-07:00AVR-IOT WG DEVELOPMENT BOARD<p style="text-align: center;"> AVR-IOT WG DEVELOPMENT BOARD</p><p style="text-align: center;"><br /></p><p style="text-align: center;"></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiX7QvUgcCtaXvzXlz-PpZaEQQ7ol3I-H-nbgmo0lp7dRTepvQ4JvfHqNWikLNG3nETGZjtV1Bd8C5rdOZAmcXeLssIWrZfpK21oxOClhiDQyYvAQe3stQUBSyJeqMUmkyj5TTNG9oro_HJ/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="576" data-original-width="1024" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiX7QvUgcCtaXvzXlz-PpZaEQQ7ol3I-H-nbgmo0lp7dRTepvQ4JvfHqNWikLNG3nETGZjtV1Bd8C5rdOZAmcXeLssIWrZfpK21oxOClhiDQyYvAQe3stQUBSyJeqMUmkyj5TTNG9oro_HJ/" width="320" /></a></div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">Introductions:</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXNWCx-T5KlGV090MdlYFNLu-qB5h20Tf7TSFPpiC73_iVQCmu0cRYxrYZRwp6xRMyj7Jmruto1on7DZDrIykPEj6jBNr1jA7T3L44E09KvZekLKjiZjpSRZC1Ff7PEl_rkbex6FHiLBCJ/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="761" data-original-width="1502" height="162" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXNWCx-T5KlGV090MdlYFNLu-qB5h20Tf7TSFPpiC73_iVQCmu0cRYxrYZRwp6xRMyj7Jmruto1on7DZDrIykPEj6jBNr1jA7T3L44E09KvZekLKjiZjpSRZC1Ff7PEl_rkbex6FHiLBCJ/" width="320" /></a></div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">Requirements:</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">Objectives:</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">Methodology:</div><div class="separator" style="clear: both; text-align: left;"><div class="separator" style="clear: both; text-align: left;"><br /></div><br /><br /></div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">Summary:</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">Conclusions:</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><br /></div><br /><br /><p></p>E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com0tag:blogger.com,1999:blog-8883986078765682368.post-86656186407090829472019-11-18T22:32:00.001-08:002019-11-18T22:37:06.458-08:00Micro Lidar + ROS + Arduino <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSfCk_tjkj2IM34qpI4eMg774fKTGbqPiPy3nu0ieXDj1ogSWs9Q_L371-Hev9PIjMn-zFeMFjJMxMtdNDHAmqJOAk2E1G5WKI86Gf6khNn4GOKVWt6WFF7NlzRwhmBINCdDeFXjN6K5n0/s1600/e-Gizmo-one_two.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="757" data-original-width="822" height="294" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSfCk_tjkj2IM34qpI4eMg774fKTGbqPiPy3nu0ieXDj1ogSWs9Q_L371-Hev9PIjMn-zFeMFjJMxMtdNDHAmqJOAk2E1G5WKI86Gf6khNn4GOKVWt6WFF7NlzRwhmBINCdDeFXjN6K5n0/s320/e-Gizmo-one_two.jpg" width="320" /></a></div>
<br />
<br />
<b>Introductions :</b><br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHQxMdxfjKSaNLeQ6lZrvIKt0ycSytK4pw43vdcMmpXzvQWddEta8qlucUsirQRKhyphenhyphenQaTUFReeqENFghDTIfa0KHwzeuVDt-eHggmNMPk6I-NskY-kYzKAlG-z3BJ0dW7LAHFg3hyphenhyphenj6_jw/s1600/e-Gizmo-one.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="720" data-original-width="960" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHQxMdxfjKSaNLeQ6lZrvIKt0ycSytK4pw43vdcMmpXzvQWddEta8qlucUsirQRKhyphenhyphenQaTUFReeqENFghDTIfa0KHwzeuVDt-eHggmNMPk6I-NskY-kYzKAlG-z3BJ0dW7LAHFg3hyphenhyphenj6_jw/s320/e-Gizmo-one.jpg" width="320" /></a></div>
<br />
Objectives:<br />
<br />
<br />
<b>Requirements:</b><br />
<br />
Methodology:<br />
<br />
<br />
<br />
<br />
<br />
Summary :<br />
<br />
<br />
Conclusions:<br />
<br />E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com2tag:blogger.com,1999:blog-8883986078765682368.post-79873290868295190352019-11-18T22:12:00.002-08:002019-11-18T22:12:22.709-08:002WD/4WD ROS Controller Board <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzr-UQEBqYdfE2_WuK5fSQXXupkrgsmfrJlIPptrWgJzMrxE752D2RK47MxhvtF_vGjVecEIVQzRBGof84UAGn3GKrCAyHB_8A74kQgyAVAL2dIzp-kaSC3QNO48TVYXsS8iurZdFdAWnF/s1600/Xentrinobot-Board-v2.0.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="720" data-original-width="960" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzr-UQEBqYdfE2_WuK5fSQXXupkrgsmfrJlIPptrWgJzMrxE752D2RK47MxhvtF_vGjVecEIVQzRBGof84UAGn3GKrCAyHB_8A74kQgyAVAL2dIzp-kaSC3QNO48TVYXsS8iurZdFdAWnF/s320/Xentrinobot-Board-v2.0.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Introduction:</div>
<div class="separator" style="clear: both; text-align: left;">
This controller board is </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Objectives:</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Requirements:</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Methodology:</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Procedures</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Summary:</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Conclusions:</div>
<br />E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com0tag:blogger.com,1999:blog-8883986078765682368.post-86483747548910597412018-04-03T01:42:00.000-07:002018-04-14T00:52:05.026-07:00NanoPi ROS (NanoPi NEO Plus 2 + Robotic Operating System)<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiV79AT7bw0FpY4bPvUv5tmjSM-Kg8HGxwE9JLZxkUTh6KjH549BJWtd6zk1HR8RwiTdNDadq2J8CsetMUEJacsJe56JkiyyOVOmICXcXBUH8075NDnCXbidR_X4L13MM5KSU96B0Dx6dmH/s1600/NanoPI-NEO+Plus2.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="563" data-original-width="1000" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiV79AT7bw0FpY4bPvUv5tmjSM-Kg8HGxwE9JLZxkUTh6KjH549BJWtd6zk1HR8RwiTdNDadq2J8CsetMUEJacsJe56JkiyyOVOmICXcXBUH8075NDnCXbidR_X4L13MM5KSU96B0Dx6dmH/s320/NanoPI-NEO+Plus2.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfUOogDSqFpXjj6txJ-ZRzfjPLRDmYNb4ZqZru7RbJot-X0Be75ft_6_s8eupDePqVWrO7m0Ks-SI4Kp7OtR9sRE4Wox7MCSocCB-ohchZ15GF51xG6Xmm3nMSnyw1iWI37Ti4CjGGxqn-/s1600/ros.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" data-original-height="278" data-original-width="620" height="143" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfUOogDSqFpXjj6txJ-ZRzfjPLRDmYNb4ZqZru7RbJot-X0Be75ft_6_s8eupDePqVWrO7m0Ks-SI4Kp7OtR9sRE4Wox7MCSocCB-ohchZ15GF51xG6Xmm3nMSnyw1iWI37Ti4CjGGxqn-/s320/ros.png" width="320" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<b>Introduction:</b><br />
<div style="text-align: justify;">
Hello, here we are once again to tackle a very interesting topic- this time its about a single board computer which will be sufficient in compiling and running the entire package of Robotic Operating System (ROS) . I have given some times to figure out a kind of single board which has a power of computing ,enough memory (RAM) and GPU ready to lower the production price of our robots. To date, I see some failures posted on the internet that NanoPi M3 wasn't working with ROS my sympathy to them for the so called problem that lost their appetite and to totally ignore the board's potential. So, I urge my self a second opportunity of exploiting the problem and how to test NanoPi. If this board doesn't really work well on R.O.S then there is no doubt that it would have a "not good" impression(?) since the board was not so popular with the rest of the SBC brands in the market. I would charge it on my own technical experiences , for the benefit of the doubt so lets then give it a try.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
So why NanoPi NEO Plus 2? Of course one simple answer is that I have tested it running other than that there is no reason choose this nano computer to be posted here. NanoPi SBC only cost 24$ , ran on a 64 bit mode of quad-core processor , can store data of 1GB DDR3 in its RAM including LAN and Wifi as its features. Compared to other single board computer in the market its price will really entice hobbyist for their robots. Comparing performance and cost will definitely give an advantage to this board to have a priority on imaging with ROS. A sort of computer platform with considerable performance and price it is worth than not trying it.</div>
<div style="text-align: justify;">
<br />
I would like to thank the linorobot(Juan Miguel Jimeno) community for this guidelines and other folks who are eager to contribute for learning,teaching and experimenting ROS for the geeks. Also , we want to promote Philippine Society of Computer Engineering through out the country and most of founders are Oragons. So much inspiration why we keep striving to cope-up with the global robotics . PSCoE believes its not too late to go with the race now and soon we are happy and we are heading further than our expectations.<br />
<br />
Thank you guys! </div>
<br />
<b>Requirements:</b><br />
Hardware:<br />
NanoPi NEO PLUS 2<br />
LAN Cable<br />
Laptop/Desktop<br />
<br />
Softwares:<br />
Ubunto 16.04<br />
ROS (kenetic)<br />
<br />
<br />
<b>Methodology:</b><br />
<b><br /></b>
1) We need to follow the steps on installing an image to NanoPI NEO Plus 2, in our installation here we preferred the Ubuntu-16.04-xenial-core<br />
Link:<br />
https://drive.google.com/drive/folders/1Yj3tXryBx6zksOOuTlm2iOT-IDSzUTTe<br />
<br />
2) Please activate both LAN and WiFi Network communications, see to it that they can communicate each other in the network , so you may use ssh,ping and etc.<br />
<b><br /></b>
Link:<br />
http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO_Plus2<br />
<div>
<br /></div>
3) Lets us now copy some ROS installation guide, or you can compile all these command lines into a file script<br />
<br />
3.a) Install dependencies<br />
pi# sudo apt-get update<br />
pi# sudo apt-get upgrade<br />
pi# sudo apt-get install -y avahi-daemon<br />
pi# sudo apt-get install -y openssh-server<br />
pi# sudo apt-get install -y python-setuptools<br />
pi# sudo apt-get install -y python-dev<br />
pi# sudo apt-get install -y build-essential<br />
pi# sudo apt-get install -y python-gudev<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUqUZm8-uL7dCErSb7V-1OTaSJHtdI5z52l7MjkwSyyfwiFvD5200IJ1cBOC6exSbn1M937rrt8E71qtq5PGpo1G0IKjjE194w73PvnKRnBxZ1VDfLblXGqlPcu5UxeRJFi58tKke52MOT/s1600/ROS-1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="516" data-original-width="734" height="280" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUqUZm8-uL7dCErSb7V-1OTaSJHtdI5z52l7MjkwSyyfwiFvD5200IJ1cBOC6exSbn1M937rrt8E71qtq5PGpo1G0IKjjE194w73PvnKRnBxZ1VDfLblXGqlPcu5UxeRJFi58tKke52MOT/s400/ROS-1.png" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
3.b) Install ROS package<br />
pi# sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'<br />
pi# wget http://packages.ros.org/ros.key -O - | sudo apt-key add -<br />
pi# sudo apt-get update<br />
pi# sudo apt-get -y install ros-kinetic-ros-base<br />
pi# sudo apt-get install python-rosdep -y<br />
pi# sudo `which rosdep` init<br />
pi# rosdep update<br />
<br />
pi# rosdep install --default-yes --from-paths . --ignore-src --rosdistro kinetic<br />
pi# source /opt/ros/kinetic/setup.bash<br />
pi# export PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/dist-packages<br />
<br />
pi# echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc<br />
pi# source ~/.bashrc<br />
<br />
3.c) Install ROS libraries<br />
pi# source /opt/ros/kinetic/setup.bash<br />
pi# sudo apt-get install -y ros-kinetic-roslint<br />
pi# sudo apt-get install -y ros-kinetic-rosserial<br />
pi# sudo apt-get install -y ros-kinetic-rosserial-arduino<br />
pi# sudo apt-get install -y ros-kinetic-imu-filter-madgwick<br />
pi# sudo apt-get install -y ros-kinetic-gmapping<br />
pi# sudo apt-get install -y ros-kinetic-map-server<br />
pi# sudo apt-get install -y ros-kinetic-navigation<br />
<div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiq80BY6bEQN_AM6n-DvqeeeKzvKG6BNeTAfJUAgTbBuMfg0vxXx1S9UTEG5jmEt9QphOUmhjbmTjVxnRE5MTLXc6YKKkB66x0Lx3NiJ5LZk7r8e_10QqbJBplgZrzDuTgAxiczc0PGLzFT/s1600/ROS-3.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="516" data-original-width="733" height="281" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiq80BY6bEQN_AM6n-DvqeeeKzvKG6BNeTAfJUAgTbBuMfg0vxXx1S9UTEG5jmEt9QphOUmhjbmTjVxnRE5MTLXc6YKKkB66x0Lx3NiJ5LZk7r8e_10QqbJBplgZrzDuTgAxiczc0PGLzFT/s400/ROS-3.png" width="400" /></a></div>
<br />
<br /></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgj5ayOnh2tuKKIHNlGe_4qngJTJLgw7HjbbXZv5GzFh9SPQU_0lJe3gsBVvqjY6H9xi-qnbo48jFeAr7DMr-KOU9HSyEYCfhlcrhlD0-ZLL8l1uF1Sj2i6ZNffrQkqqQeU2f5xWZVH53KN/s1600/ROS-4.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="516" data-original-width="734" height="280" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgj5ayOnh2tuKKIHNlGe_4qngJTJLgw7HjbbXZv5GzFh9SPQU_0lJe3gsBVvqjY6H9xi-qnbo48jFeAr7DMr-KOU9HSyEYCfhlcrhlD0-ZLL8l1uF1Sj2i6ZNffrQkqqQeU2f5xWZVH53KN/s400/ROS-4.png" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
3.d) Install ROS available sensors libraries(LIDAR and cameras)<br />
pi# sudo apt-get install -y ros-kinetic-xv-11-laser-driver <br />
pi# sudo apt-get install -y ros-kinetic-freenect-launch<br />
pi# sudo apt-get install -y ros-kinetic-depthimage-to-laserscan<br />
pi# sudo apt-get install -y ros-kinetic-realsense_camera<br />
pi# sudo apt-get install -y ros-kinetic-depthimage-to-laserscan<br />
<br />
<b><br /></b>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicpBYmtaG7wKEuranS7GVxoNL3ZL18ioS8MmiLWcJ9HMuqyKeTKeFEwIV0y1bvryQ3W_CwjuSrYb94yMyfvPis4hxyKP_jcHwI6OBjrKNibU9vpUdxoErGqHoo3voSb0AGAZNUYAFm_GAa/s1600/ROS-5.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="515" data-original-width="735" height="280" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicpBYmtaG7wKEuranS7GVxoNL3ZL18ioS8MmiLWcJ9HMuqyKeTKeFEwIV0y1bvryQ3W_CwjuSrYb94yMyfvPis4hxyKP_jcHwI6OBjrKNibU9vpUdxoErGqHoo3voSb0AGAZNUYAFm_GAa/s400/ROS-5.png" width="400" /></a></div>
<b><br /></b>
<b><br /></b><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
4) Create a catkin workspace(xentrinobot is just my own robot's alias)<br />
pi# mkdir -p xentrinobot_ws/src<br />
pi# cd xentrinobot_ws/src<br />
pi# catkin_init_workspace<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijhWiJ0aHraOxO7bm7lNZNZo9KPPAJhyiKQipPcD13LKrZ_k0dAa6o7nf0eJJIaGV2K-3XMK34HAjlOMUXwZefnyqVNyL7WblTtYRlfwNwzn0uoYkllal1fRuG9hZEPjrkTEpRp-eaITs5/s1600/ROS-2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="515" data-original-width="731" height="281" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijhWiJ0aHraOxO7bm7lNZNZo9KPPAJhyiKQipPcD13LKrZ_k0dAa6o7nf0eJJIaGV2K-3XMK34HAjlOMUXwZefnyqVNyL7WblTtYRlfwNwzn0uoYkllal1fRuG9hZEPjrkTEpRp-eaITs5/s400/ROS-2.png" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioLY4SxwdDGb_WZJ-vtpn-Batf0JJXJsf9FEjT4f3cMd2AMYcGZnNXHZh5HCtH9GGWIVC6dhE3ktRG3PHZeLE9jjGpT93ZJmMG_5jKNWcZ9xYEcV5h-rOemKvFORBZtP50dyzGmZsCwmoz/s1600/ROS-6.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="514" data-original-width="736" height="278" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioLY4SxwdDGb_WZJ-vtpn-Batf0JJXJsf9FEjT4f3cMd2AMYcGZnNXHZh5HCtH9GGWIVC6dhE3ktRG3PHZeLE9jjGpT93ZJmMG_5jKNWcZ9xYEcV5h-rOemKvFORBZtP50dyzGmZsCwmoz/s400/ROS-6.png" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
4.a) enter your catkin development inside this workspace<br />
pi# cd ~/xentrinobot_ws<br />
pi# <b>catkin_make -j2</b><br />
pi# source devel/setup.bash<br />
pi# echo "source ~/xentrinobot_ws/devel/setup.bash" >> ~/.bashrc<br />
pi# source ~/.bashrc<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguY9IPyA-nN53GYpAHqLt_txOZjY3a20t0tXpfQgIda5x6zFqDcFHRKuOpfaAJIaogJ7jMABdIGRa3S6j2Tya-0Un1gkfpAACqqnAb5PSPBtBLBhU5L_Ctozsr1qlgnVKGNbe28JvoCDbI/s1600/ROS-7.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="466" data-original-width="735" height="252" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguY9IPyA-nN53GYpAHqLt_txOZjY3a20t0tXpfQgIda5x6zFqDcFHRKuOpfaAJIaogJ7jMABdIGRa3S6j2Tya-0Un1gkfpAACqqnAb5PSPBtBLBhU5L_Ctozsr1qlgnVKGNbe28JvoCDbI/s400/ROS-7.png" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
5)Connect NanoPi from your Computer(PC)<br />
pi# ifconfig<br />
pi# ssh pi@192.168.8.4<br />
Use ROS between NanoPi and your PC<br />
<br />
5.a) First, set IP Address to set hosts name.Then edit the file <b>/etc/hosts </b>with some editor.<br />
pi# sudo vi /etc/hosts<br />
<br />
5.b)Add these two lines and save it.<br />
192.168.8.4 NanoPi<br />
192.168.8.5 MyComputer<br />
<br />
<i>Note: This is just an example please change it as to what IP addresses that you have.</i><br />
<br />
5.c) Check if the hosts is right by using ping<br />
<br />
p# ping NanoPi<br />
<br />
Please run <b>roscore </b>at NanoPi , in this example we use NanoPi as our computer on-boarded in a robot so it initialize as a master. Before starting roscore, export to ROS_HOSTNAME and ROS_MASTER_URI<br />
<br />
p# export ROS_HOSTNAME=NanoPi<br />
pi# export ROS_MASTER_URI=http://NanoPi:11311<br />
pi# roscore<br />
<br />
5.d) Then, using your developmental computer, export to ROS_HOSTNAME and ROS_MASTER_URI in your PC<br />
robook# export ROS_HOSTNAME=MyComputer<br />
robook# export ROS_MASTER_URI=http://NanoPi:11311<br />
<br />
5.e) Now, you can see rostopic of NanoPi<br />
robook# rostopic list<br />
/chatter<br />
/rosout<br />
/rosout_agg<br />
<br />
<br />
<b>Remarks:</b><br />
<br />
0) If some errors occur , please try to look a missing package that are need to be installed or compile.<br />
<br />
1) if using a single board computer please make a lesser thread during the catkin compilation "catkin_make -j 2 , one or two threads will do for that purpose.<br />
<br />
2) If catkin_make is not recognize , try to use source /devel/setup.bash for its workspace initialization<br />
<br />
3) For RPLIDAR undetected usb/serial port , possible issue is the un installed usb driver ( https://www.silabs.com/documents/public/release-notes/Linux_CP210x_VCP_3.x.x_4.x.x_Release_Notes.txt)<br />
<br />
Try this link with your verified e-mail :<br />
pi# sudo apt-get install libusb*<br />
pi# wget https://www.silabs.com/documents/login/<br />
software/Linux_3.x.x_4.x.x_VCP_Driver_Source.zip<br />
<div>
<br /></div>
<pre style="word-wrap: break-word;"></pre>
<div>
3.a) Support for the CP2010N</div>
<div>
<br /></div>
NOTE:<br />
This driver is an example of how to perform GPIO operations within the CP210x driver since the driver on kernel.org does not support GPIO at this time. This driver has only been written and tested on the Linux 3.13.0 kernel on Ubuntu 14.04. This driver is a modified version of the existing driver in the Linux 3.13.0 kernel, which is maintained at kernel.org. It is recommended to use the driver there that matches your specific kernel version: www.kernel.org<br />
<br />
3.b) Build instructions:<br />
Ubuntu:<br />
1. make ( your cp210x driver )<br />
2. cp cp210x.ko to /lib/modules/<kernel-version>/kernel/drivers/usb/serial</kernel-version><br />
3. insmod /lib/modules/<kernel-version drivers="" kernel="" p="" serial="" usb="" usbserial.ko="">4. insmod cp210x.ko<br />
<br /><kernel-version drivers="" kernel="" p="" serial="" usb="" usbserial.ko="">3.c) GPIO example:<br />
This shows how to use the two IOCTLs to set GPIO state.<br /><br />
3.d) Build instructions:<br />
1. g++ cp210x_gpio_example.c -o cp210x_gpio_example<br />
2. ./cp210x_gpio_example<br /><b><br /></b><br />
<b>Summary:</b><br />
<b><br /></b>
<b>Conclusion:</b></kernel-version></kernel-version><br />
IOT Embedded boards are used also in ROS<br />
NanoPi Boards are no joke<br />
<br />
<br />E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com0tag:blogger.com,1999:blog-8883986078765682368.post-56928349640497840322017-03-13T06:03:00.002-07:002017-08-31T21:44:53.698-07:00Arduino Starter kit (K12 STEM)<div style="text-align: justify;">
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj35xRkoIMvIqWH79frU3n4JHd7KMrj7Dy8GDXHLHMiqLW3VLiJ8zrWG71LMBlpl-g3rvGEWdiulTWEaT8WNFE8-dGlqQXjMrn5Dq3siefkf29PcOCE4NOZJh4BvVz0CFgHrP-AN7PyE9eh/s1600/RFID+Training+Kit.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj35xRkoIMvIqWH79frU3n4JHd7KMrj7Dy8GDXHLHMiqLW3VLiJ8zrWG71LMBlpl-g3rvGEWdiulTWEaT8WNFE8-dGlqQXjMrn5Dq3siefkf29PcOCE4NOZJh4BvVz0CFgHrP-AN7PyE9eh/s400/RFID+Training+Kit.jpg" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><b>Arduino RFID Kit</b></td></tr>
</tbody></table>
<div class="separator" style="clear: both; text-align: center;">
<span style="color: blue;"><b></b></span></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
<b><span style="font-size: large;">UNANG KABANATA</span></b></div>
<div style="text-align: center;">
<br /></div>
<br />
<span style="color: blue;"><b>Mga pangunahing talata</b></span><br />
Magandang pagkakataon sa lahat ng mga nagbabasa sa blog na ito dahil sa ngayun ay minabuti ng inyong lingkod na magsulat patungkol sa wastong pagamit ng RFID training kit. Ang kit na maaring nyong gamitin para mapag aralan ang pag buo ng sirkito ng ibat ibat pyesa,modules sa electronics ng Arduino Microcontroler kit. Mahalaga ang kit na ito para sa mga nagnanais na matuto ng Electronic Circuits, Microcontroller Programming at Digital Design, na maari ring pakinabangan sa iba pang application para sa mga project sa highschool .Ang panimulang kaalaman sa Arduino kit ay may natatanging gamit din tulad halimbawa sa Digital design, robotics at iba pang mga inmportanteng interface at simulation sa computer. Para maging madali ang mga gagawing hakbang para matutunan ito, kinakailangan malaman at maintindihan ang mga nakalistang kagamitan para mainam na maisagawa ang mga nasabing experimento.<br />
Ang layunin ng blog na ito ay upang makapag ambag ng kaalaman sa abot makakayang teknical na mensahing maipapaunawa sa mga taga subaybay. Isa na sa mga ito ang grupo ng ating mga kaguruan at mag aaral sa antas ng K11 at K12, ito ay tumutukoy sa STEM na kanilang pag aaralan ay makatuong at magamit ang Arduino para lubos na maintindihan ng ating mga kasamang kabataan ang tulay sa pagawa ng makabagong teknolohiya .<br />
<br />
Sya nawa :)<br />
<br />
<br />
<b style="text-align: center;"><span style="font-size: large;"> PANGALAWANG KABANATA</span></b><br />
<br />
<div style="text-align: justify;">
<span style="color: blue;"><b>Mga kinakailangan</b></span><br />
<b>Fritzing Circuit Simulator</b> ang software na kakailanganin sa pag desinyo at pag lalarawan ng mga circuito halimbawa na ang mga koneksyun at pag kakabit kabit ng mga pyesa sa arduino.Sa link na ito maaring ma download ang software <b></b><br />
<b></b></div>
<div style="text-align: justify;">
<span style="color: #0b5394;"><i><span style="color: #0b5394;"><b>http://fritzing.org/download/</b></span></i></span><br />
<br /></div>
<div style="text-align: justify;">
<b>Arduino IDE </b>ay ang software na gagamtin natin para maisulat at pagnahin ang program.May dalawang pag pipilian para magamit ang software : pwede itong i-install sainyong computer o kaya sa online pwede ng mag compile ng inyong soure code(program)</div>
<div style="text-align: justify;">
<span style="color: #134f5c;"><i><b>https://www.arduino.cc/en/Main/Software</b></i></span></div>
<div style="text-align: justify;">
<br />
<b>Arduino UNO Starter o RFID Training kit</b>, ang kabuohang ng mga pyesang gagamitin sa pag buo ng isang experimento sa</div>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgokyEHpU03aSwZlB9WWCM9Qn7abw3cVCZyldl24g5wdu2KjP2fTAtePgqCS8dI8dNShoHR7Z9VXQ7PFEQExeLlHnbO7vepxTfRSqe1Ej0RPxO0yNYnSBY0cOR8i5rdyL2fWPyzxvyMI9_M/s1600/arduino+starter+kit.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="670" data-original-width="726" height="368" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgokyEHpU03aSwZlB9WWCM9Qn7abw3cVCZyldl24g5wdu2KjP2fTAtePgqCS8dI8dNShoHR7Z9VXQ7PFEQExeLlHnbO7vepxTfRSqe1Ej0RPxO0yNYnSBY0cOR8i5rdyL2fWPyzxvyMI9_M/s400/arduino+starter+kit.jpg" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><b>Arduino Starter Kit</b></td></tr>
</tbody></table>
</div>
<div style="text-align: justify;">
<div style="text-align: right;">
</div>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: right; text-align: left;"><tbody>
<tr><td style="text-align: center;"></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><br /></td></tr>
</tbody></table>
<b style="text-align: center;"><span style="font-size: large;"><br /></span></b>
<b style="text-align: center;"><span style="font-size: large;"> </span></b><br />
<b style="text-align: center;"><span style="font-size: large;"><br /></span></b>
<b style="text-align: center;"><span style="font-size: large;"> PANGATLONG KABANATA</span></b><b><span style="color: blue;"></span></b><br />
<div style="text-align: center;">
<b> (Mga kagamitan sa pagbuo ng proyektong oCirkito)</b></div>
<br />
<br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH0O0x8BIJy1kp2RgDmxVnmfCqMQKtFpr1fZCsw1FaFE9E3QV6NwwX5DkrBdhEkxeteefcE-zkTTBTTUbk-ntjLj36DQIGqVEoCNGX_zwZifxAIHQgoaHIiI9_ZWj6dXDXvsFV7-sxBxIR/s1600/UNO+R3.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="225" data-original-width="225" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH0O0x8BIJy1kp2RgDmxVnmfCqMQKtFpr1fZCsw1FaFE9E3QV6NwwX5DkrBdhEkxeteefcE-zkTTBTTUbk-ntjLj36DQIGqVEoCNGX_zwZifxAIHQgoaHIiI9_ZWj6dXDXvsFV7-sxBxIR/s200/UNO+R3.jpg" width="200" /></a><b style="color: blue; text-align: center;"><b style="color: black;"><span style="font-size: medium;"></span></b></b><span style="font-family: "times" , "times new roman" , serif;"><b style="background-color: white;">Arduino UNO R3 </b><span style="background-color: white;">ito ang maliit-na controller or micro-controller ,isang electronic na pyesa na pumapareho sa sa functionalities ng ordinaryong kompyuter. Bagaman walang makikitang monitor ,keyboard ,mouse at ano mang parte katulad ng ordinaryong Kompyuter, ang isang pag kakatulad nito ay pwede itong malagyan ng -program .Kung may software na ginagawang program sa Kompyuter , may firmware naman sa micro-controller. Ang firmware ay ang program na isinalin sa lenguahe na maiintindihan ng elektronic na makina isa na dito ang maliit na controller -Arduino UNO. Ang firmware ay may pasunod sunod na mga kautusan para magamit ang mga port na terminal halimbawa ipasok ang signal o ilabas ang signal sa mga pin terminal nito na kung susuriin ay pwedeng may voltahe or wala.</span></span><b><b style="text-align: center;"><span style="font-size: medium;"><span style="font-family: "times" , "times new roman" , serif;"> </span><span style="font-size: large;"> </span></span></b></b></div>
<div style="text-align: justify;">
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: right; text-align: left;"><tbody>
<tr><td style="text-align: center;"></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><b style="text-align: justify;"> </b></td></tr>
</tbody></table>
<span style="color: black;"><span style="clear: left; display: inline; margin-bottom: 1em; margin-right: 1em;"><span style="clear: left; margin-bottom: 1em; margin-right: 1em;"><b><br /></b></span></span></span>
<br />
<div style="text-align: left;">
<div style="text-align: justify;">
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIBghcDZl6hHUaQuq7Za6YIEFZcc0WlKyMh_fB2LN1bawOzLsZQ3wPLIqdcQw4XoBkb4gN9LWh_VJ9ltrE7L-jUYgmm7B0Xu5lBgDQ3JfuIHMWWjq5LrAN1NpOFy286iaNDoZ4_vAZ_3k9/s1600/09191-1.jpg" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" data-original-height="600" data-original-width="600" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIBghcDZl6hHUaQuq7Za6YIEFZcc0WlKyMh_fB2LN1bawOzLsZQ3wPLIqdcQw4XoBkb4gN9LWh_VJ9ltrE7L-jUYgmm7B0Xu5lBgDQ3JfuIHMWWjq5LrAN1NpOFy286iaNDoZ4_vAZ_3k9/s200/09191-1.jpg" width="200" /></a></td></tr>
<tr><td class="tr-caption" style="font-size: 12.8px; text-align: center;">7 segment display</td></tr>
</tbody></table>
<div style="text-align: left;">
<div style="text-align: justify;">
</div>
</div>
<span style="color: blue;"><span style="color: black; text-align: center;"><b>Seven segment Display</b> <b> , </b>ang pitong segment na ito ay maliit na butil ng ilaw na kung nabubo nagkakaroon ng hugis numero. Dahil dito sa ganitong resulat , maari na tayong gumawa ng program para maipakita ang mga numerong kumokurte sa ilaw. Isa sa mga gamit nito ang mga palamuti sa pag dispay ng pag bibilang o counter .Madalas natin itong makita sa mga banko na nag aayos ng mga hanay ng mga customer nila para sa isang transaksyun sa pag iimpok.<b> <span style="font-size: large;"> </span></b></span></span></div>
<br />
<div style="text-align: justify;">
<span style="font-size: large; font-weight: bold;"><br /></span></div>
<span style="color: blue;"><span style="color: black; text-align: center;"><b><span style="font-size: large;"> </span></b></span></span><br />
<span style="color: blue;"><span style="color: black; text-align: center;"><b><span style="font-size: large;"><br /></span></b></span></span></div>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFSzu_KCSjJGCqVo1xlADBpKdLkFdHeVVa2d7D2Xt9XjcYuBhEOn-soHzAK9lr-PKDJb6uOi3PYZetnzv8iB0EGSsuVMymRXBB5HK1h7mOUV9GYZPEbLm3id-evV_c31zCIgBISoLZVjQo/s1600/Variable+Resistor.jpg" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" data-original-height="232" data-original-width="217" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFSzu_KCSjJGCqVo1xlADBpKdLkFdHeVVa2d7D2Xt9XjcYuBhEOn-soHzAK9lr-PKDJb6uOi3PYZetnzv8iB0EGSsuVMymRXBB5HK1h7mOUV9GYZPEbLm3id-evV_c31zCIgBISoLZVjQo/s200/Variable+Resistor.jpg" width="187" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Variable Resistor</td></tr>
</tbody></table>
<b style="color: blue;"><b style="color: black; text-align: center;"><span style="font-size: large;"><b style="font-size: medium;">Vaiable Resistor</b><span style="font-size: small; font-weight: normal;"> </span><b style="font-size: medium;"> , </b><span style="font-size: small; font-weight: normal;">ay isang pyesang kaparehas ng gamit ng resistor maliban na lang sa kakayahan nito na magkaroon ng ibat ibang resistance ng isang cirkito.Maitutulad ito sa dalawa o higit pang nakakabit na mga resistor , na sa bawat pag pihit ay magkakaroon ng pag liit o pag laki ng resistensya nito sanhi ng pag babago sa pag daloy ng kuryento sa isang dugtungan ng cirkito. Adhustable o nababago ang resistance depende sa biasing o pag titimpla sa kuryenteng kinakailangan ikarga o ilagay sa isang cirkito. Halimbawa kung ang kakayahang resistensya nito sa kuryente ay simula sa wala o singkwenta 0 to 50 ohms , pwede dito ang laki o liit na umaayon sa wala o limampong kayang resistensyang maibibigay nito para baguhin ang pagdaloy ng kuryento sa isang cirkito. </span></span></b></b><b style="color: blue;"><b style="color: black; text-align: center;"><span style="font-size: large;"><br /></span></b></b><br />
<div style="text-align: left;">
<b style="color: blue;"><b style="color: black; text-align: center;"><span style="font-size: large;"><b style="color: blue; text-align: justify;"><b style="color: black; text-align: center;"><span style="font-size: large;"> </span></b></b></span></b></b></div>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipTIv-IHxbUfkCswvQfQJIXKx0l7LY0ovAQQx-Y-EVqLIBwVDpKSc-k-BaN6ZDKHl7l_5PQnBkyrglTkMddKkemC9NL6dljyxdm1CKrea45f-Ud8dH6WbQgws4cn9DOAtNHcnuX5CeDapN/s1600/Resistor.jpg" imageanchor="1" style="clear: left; font-size: medium; font-weight: normal; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" data-original-height="224" data-original-width="224" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipTIv-IHxbUfkCswvQfQJIXKx0l7LY0ovAQQx-Y-EVqLIBwVDpKSc-k-BaN6ZDKHl7l_5PQnBkyrglTkMddKkemC9NL6dljyxdm1CKrea45f-Ud8dH6WbQgws4cn9DOAtNHcnuX5CeDapN/s200/Resistor.jpg" width="200" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Resistor</td></tr>
</tbody></table>
<div style="text-align: left;">
<b style="color: blue;"><b style="color: black; text-align: center;"><span style="font-size: large;"></span></b></b></div>
<span style="color: blue;"><span style="color: black; text-align: center;"><span style="font-size: large;"><span style="color: blue; font-size: small; text-align: justify;"><span style="color: black; text-align: center;"><span style="font-size: large;"><b style="font-size: medium; font-weight: bold;">Resistor</b><span style="font-size: small; font-weight: normal;"> </span><b style="font-size: medium; font-weight: bold;"> , </b><span style="font-size: small;">isa sa gamit at epekto ng pyesang ito ay ang limitahan ang dumadaloy na kuryente o voltahe sa cirkito. Ang uri ng materiales sa pyesang ito nag hahadlang at nag pipigil para tumakbo ang butil ng mga electron sa loob nito. Sa ganitong pang yayari nababawasan ang anumang lakas nd electrisidad sa kinakabitan nitong cirkito. Gamit ito sa maayos na pag babahagi ng kuryente o pag palakas naman sa voltahe maikakabit dito.Walang itong polarity , pwede dumaloy ang electron dito sa anumang direksyun , subalit ang kakakayahan nitong pumigil ng daloy ng kuryente ay sya ring mapanganib kapag hindi ito masyadong sumakto o mali ang calkulasyon ng color coding nito.Dahil pumipigil sya sa kuryente at kung magkakamali sa bilang ng resistance nito ay maaring magkasanhi ng pag init o pag kasunod ng pyesa. </span></span></span></span></span></span></span><br />
<br />
<b style="color: blue;"><b style="color: black; text-align: center;"><span style="font-size: large;"></span></b></b>
<br />
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdJcbOXA4OUdn3I7xtTbfNSNbBPblIG6lXSGld44nTjEgq8yePEWdKypS3QOK41UySD0sudUX-SH2UkHl0YaLqVnInFeQr2tIG-tyCsuciIRBIUinqTAhO2sdGJiffPOPfGe817dkHtAKR/s1600/Capacitor.jpg" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto; text-align: center;"><img border="0" data-original-height="181" data-original-width="278" height="130" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdJcbOXA4OUdn3I7xtTbfNSNbBPblIG6lXSGld44nTjEgq8yePEWdKypS3QOK41UySD0sudUX-SH2UkHl0YaLqVnInFeQr2tIG-tyCsuciIRBIUinqTAhO2sdGJiffPOPfGe817dkHtAKR/s200/Capacitor.jpg" width="200" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Capacitor</td></tr>
</tbody></table>
<b style="color: blue;"><b style="color: black; text-align: center;"><span style="font-size: large;"><b style="color: blue; font-size: medium; text-align: justify;"><b style="color: black; text-align: center;"><span style="font-size: large;"><b style="color: blue; font-size: medium; text-align: justify;"><b style="color: black; text-align: center;"><span style="font-size: large;"><b style="font-size: medium;">Capacitor</b><span style="font-size: small; font-weight: normal;"> </span><b style="font-size: medium;"> , </b><span style="font-size: small; font-weight: normal;">ang pyesang ito ay may capasiad o kakayahang kumrga ng voltahe at kuryent galing sa sa isang elektric source nito. Dahil sa uri ng sangkap sa pag kakabuo ng semi-conductor na ito (isang pyesang kinakailangan ang isang elektrisidad para gumana ito ). Sa kadahilanang ito , ang pag kakarga nya ng enerhiya o lakas ng kuryente o voltahe , nagagawa nitong panatilihin ang kinakailangang lakas sa isang cirkito. Subalit depende sa klase ng gamit nito na kung minsan kailangan suriin ang polarity ng koneksyun nito na katulad din ng isang baterya. Anumang kamalian ng + positive o -negative na pin terminal nya ay mag sasanhi ng pagkasira nito at ang iba pa mismong nakakabit dito, maaring masunog o sumabog ito ,kaya kailangan talagang masuri muna ang uri ng kapasitor na gagamitin o ikokonekta sa cirkito </span></span></b></b></span></b></b></span></b></b><br />
<b style="color: blue;"><b style="color: black; text-align: center;"><span style="font-size: large;"></span></b></b>
<br />
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPnnDTabm4xR4QWDLU2DJWwmVAV-P9ClLAow7hCpIjjw5vyuksp7hPyqgt9itaCUeeWhgoUmG8hfEPoCJLwoiRUDUNcIDwxLBtBobTgdp1vh6Slfm-W90UEq86iz0tTlEoKpAiqSnejTON/s1600/breadboard.jpg" imageanchor="1" style="clear: left; font-size: medium; font-weight: normal; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" data-original-height="183" data-original-width="275" height="133" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPnnDTabm4xR4QWDLU2DJWwmVAV-P9ClLAow7hCpIjjw5vyuksp7hPyqgt9itaCUeeWhgoUmG8hfEPoCJLwoiRUDUNcIDwxLBtBobTgdp1vh6Slfm-W90UEq86iz0tTlEoKpAiqSnejTON/s200/breadboard.jpg" width="200" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Breadboard</td></tr>
</tbody></table>
<br />
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="clear: right; float: right; margin-bottom: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"></td></tr>
<tr><td class="tr-caption" style="text-align: center;"></td></tr>
</tbody></table>
<span style="color: black;"><span style="clear: left; display: inline; margin-bottom: 1em; margin-right: 1em;"><span style="clear: left; margin-bottom: 1em; margin-right: 1em;"><b>Breadboard</b> ito ang isang kagamitan kung papano unang binubuo </span></span></span><span style="clear: left; display: inline; margin-bottom: 1em; margin-right: 1em;"><span style="clear: left; margin-bottom: 1em; margin-right: 1em;">ang pag plano o pag </span>desinyo ng cirkito. Madami itong nakahanay na maliit na butas ,dito ipinapasok ang mga kawad para maikabit kabit ang naitanging koneksyun. Isa sa mga bentahe o lamang na pagamit nito ay madaliang pag buo at pag kalas ng disenyo ng circuito. Nakakatipid din ito sapagkat di na kailangan maghinang ng mga kawad para maisakatuparan ang magiging resulta inaasam sa cirkito. Sa ganitong pag kakataon, kinakailangan natin ang experimental board o breadboard </span><span style="text-align: justify;">dahil sa mag pag aaral natin sa kit na ito.</span><br />
<div class="separator" style="clear: both; text-align: center;">
<b style="text-align: justify;"><b style="text-align: center;"><span style="font-size: large;"> </span></b></b></div>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><img height="200" src="https://ph-live-01.slatic.net/p/2/40-pieces-30cm-dupont-wire-cable-1p-1p-connector-1480993443-0027532-b64391324e742f10504f1296ae76cb2b-webp-zoom.jpg" style="margin-left: auto; margin-right: auto;" width="200" /></td></tr>
<tr><td class="tr-caption" style="font-size: 12.8px; text-align: center;">Dupont jumper wire</td></tr>
</tbody></table>
<span style="color: blue;"><b>Kawad </b>ito ay ginagamit na linya ng koneksyun ng isang elektronik na pyesa kung papaanong ikinakabit sa iba pang pyesa o parte ng cirkito. May iba-iba itong haba lapad at laki na naaayun sa kinakaliangan gamit , pakakatandaan na habang lumalaki ang kuryente lumalaki din dapat ang hibla nito . Sa ganitong setup malabis nating gamiting ang dupont wire na makikitang sa larawan</span><span style="color: blue;">.</span><b><b style="text-align: center;"><span style="font-size: large;"> </span></b></b><br />
<b style="color: blue;"><b style="color: black; text-align: center;"><span style="font-size: large;"><br /></span></b></b>
<b style="color: blue;"><b style="color: black; text-align: center;"><span style="font-size: large;"><br /></span></b></b>
<b style="color: blue;"><b style="color: black; text-align: center;"><span style="font-size: large;"></span></b></b>
<br />
<br />
<br />
<br />
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv3-oD4ugMpCiym_kIh9ESLz9JmvpsejQxdlr6JcBI3fxvlZEIkPRwvcdl0kKoEpmT3wOt1Qcd61-xQh42rg8a7gaLqVlfN6N-qBcFk0WHqkU4HZ7EVUR0jcRQeX2nzBTedfYbI0BgNxhM/s1600/Button.jpg" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" data-original-height="600" data-original-width="600" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv3-oD4ugMpCiym_kIh9ESLz9JmvpsejQxdlr6JcBI3fxvlZEIkPRwvcdl0kKoEpmT3wOt1Qcd61-xQh42rg8a7gaLqVlfN6N-qBcFk0WHqkU4HZ7EVUR0jcRQeX2nzBTedfYbI0BgNxhM/s200/Button.jpg" width="200" /></a></td></tr>
<tr><td class="tr-caption" style="font-size: 12.8px; text-align: center;">Buttons<br />
<div>
<br /></div>
</td></tr>
</tbody></table>
<b>Buttons </b>isa ang pyesang ito sa palaging magagamit sa pag<br />
<span style="color: black;"><span style="clear: left; display: inline; margin-bottom: 1em; margin-right: 1em;"><span style="clear: left; margin-bottom: 1em; margin-right: 1em;">experimento ng ating mga gagawing cirkito. Ang isa sa gamit ng buttones na ito ay ang pag kakaroon ng kontak o koneksyun kapag ito ay na pipindot or na pi-pisil(press). Samakatuwid pwede nating i apply o magamit ang isang signal sa isang konkesyun na gusto nating ikabit o ilagay sa isang actibong pyesa ia na dyana ng maliit na controller o Arduino UNO.Marami ang ibat ibang disenyo nito , maaring sa kulay , laki at hugis din. Kung mapapansin natin ito ay may mahigit dalawa pang paa , depende sa kung ilang koneksyun ay kaya nyang pagdutungin . </span></span></span><br />
<b style="color: blue;"><b style="color: black; text-align: center;"><span style="font-size: large;"></span></b></b>
<b style="color: blue;"><b style="color: black; text-align: center;"><span style="font-size: large;"><br /></span></b></b>
<b style="color: blue;"><b style="color: black; text-align: center;"><span style="font-size: large;"><br /></span></b></b>
<br />
<span style="color: blue;"><span style="color: black; text-align: center;"><span style="font-size: large;"><b> </b></span></span></span><br />
<b style="text-align: center;"><span style="font-size: large;"> PANG APAT NA KABANATA</span></b><br />
<br />
<b style="color: blue;"><b style="color: black; text-align: center;"><span style="font-size: large;"></span></b></b>
<b style="color: blue;">Mga pamamaraan:</b><br />
Saro) Kumpletuhin dapat muna ang mga pyesang mga kinakailangan sa project experiment.Mas mainam din na pag aralang mabuti ang mga kuniksyon polarity (+ - GND) ng bawat pin o terminal ng pyesa. Ito ay nasa drawing ng Fritzing simulator o kaya sa schematic diagram na planong bubuin.<br />
<br />
Duwa) Sa pag program, maari na lamang munang gamitin ang mga source code na gamit halimbawa sa mga gagawing experimento.Ito ay kasama na sa Arduino Software kapag na install na.<br />
<br />
Tulo) At kapag gumana na ang program maari na itong tipakin o baguhin ayun sa gusto kalalabasan ng ating experimento o dili kaya ang desinyo ng ating proyekto.<br />
<br />
<br />
<br />
<b style="text-align: center;"><span style="font-size: large;"> PANGLIMANG KABANATA</span></b><br />
(Mga Pangunahing Pyesa sa Elektronik )<br />
<span style="color: blue;"><b>Mga gagawing project sketch:</b></span><br />
<span style="background-color: #fff2cc;"><i><b>I) Ang pag papailaw ng LED at pag papatunog sa Buzzer</b></i></span><br />
<br />
Saro) Tamang koneksyun ayun sa schematic diagram<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQK1R6zODMImPhfuURRobwvz1WuXKQaCBIMT3xrtibGYOmww8ryah3xHWHGiK0ZHW0oM5gCFRUpTmCdZBLlAf3Ao0RymA17ybEhwZ7Ey0_vW9siTVNjEnNbxlqH3D7V7aT4TfRAHQKUDD9/s1600/fritzing-preview-bb.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="271" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQK1R6zODMImPhfuURRobwvz1WuXKQaCBIMT3xrtibGYOmww8ryah3xHWHGiK0ZHW0oM5gCFRUpTmCdZBLlAf3Ao0RymA17ybEhwZ7Ey0_vW9siTVNjEnNbxlqH3D7V7aT4TfRAHQKUDD9/s400/fritzing-preview-bb.png" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Duwa)Pag gamit ng source sa halimbawa ng Arduino Softwares<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGAhX7K_kQcTU7pTsvuJVGSa9JoKoXqLRRhg0oqxmsPdHZS0EN7io5_TJmvJfZFSxSTeQhCmDMyvrRLTVitfE_A7Bxd1n6qARvD3YL9FLs2wOIRUsheJw6PANV5J6RC95vrsh_lFIKukIk/s1600/Arduino.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="237" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGAhX7K_kQcTU7pTsvuJVGSa9JoKoXqLRRhg0oqxmsPdHZS0EN7io5_TJmvJfZFSxSTeQhCmDMyvrRLTVitfE_A7Bxd1n6qARvD3YL9FLs2wOIRUsheJw6PANV5J6RC95vrsh_lFIKukIk/s400/Arduino.png" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Tulo)Pag titipak o pag debug para sa ibang output ng program<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghpx051-5XDP9dHhgq-E4egYBr9M6LDC8wQrzNnklSY477AzJfJ_ylgJpnkFTJQa49Y_9WKTLGyX8lEGKBAmE4yzCmzTkg-ZYzl-D3L1g2xKcyRt80txOIsiJOI3Z1LDRugskv4b56BdmT/s1600/Delay.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="270" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghpx051-5XDP9dHhgq-E4egYBr9M6LDC8wQrzNnklSY477AzJfJ_ylgJpnkFTJQa49Y_9WKTLGyX8lEGKBAmE4yzCmzTkg-ZYzl-D3L1g2xKcyRt80txOIsiJOI3Z1LDRugskv4b56BdmT/s400/Delay.png" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Apat) Sa pagtatapos ng proyetktong ito,kinakailangan matutunan ang mga sumusunod.<br />
<br />
-Tamang polarity o signal ng supply na galing sa Arduino ang GRND (-) at VCC ang (+) na syang pag kakabitan ng dalwang kawad ng LED.Kailangan ito para di masira ang Arduino at ang LED dahil kapag magkaiba o baliktad ito ay magsasanhi ng pag init na ikakasira ng alinmang pyesa magkakabit.<br />
-Ang pag pili ng sample code na kasama na sa software ng arduino<br />
-Ang tamang pag tuklas sa kaayusan(data structure) at pag sunod sunod(algorithm) ng program.Ang kakayahang baguhin source code para mapag aralan ang mga ibat ibang maaring kalalabasan ng program ito ay literal na makikita sa ibat ibang pagpatay at sindi ng ilaw.<br />
<br />
<br />
<span style="background-color: #fff2cc;"><b>II) <i>Ang pag patunog ng buzzer,</i></b></span><br />
Saro) Sa susunod na proyektong ito , ay kailangan lang mapag aralan ang pag kabit ng buzzer sa terminal ng arduino at ito ay walang pinagkaiba sa pinagkaibitan ng LED.<br />
<br />
Duwa) Katulad ng dating source code sa experimento sa pag pa blink ng LED<br />
<br />
Tulo) Katulad ng pag babago ng source code sa pag papailaw ng LED<br />
<br />
Apat) Parehong anaylisis .<br />
<br />
<br />
<br />
<br />
<b style="text-align: center;"><span style="font-size: large;"> PANGANIM NA KABANATA</span></b><br />
(Mga actuator at motor )<br />
<br />
<span style="background-color: #fff2cc;"><i><b>III) Pag papaikot sa Motor , sa stepper motor at servo motor</b></i></span><br />
<br />
<span style="background-color: #fff2cc;"><i><span style="background-color: white;">Servo motor(may feedback)</span><b> </b></i></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWf588bP-6lasNpIKu545rS95_3XGei9iqcGBm5we7oRIJ5U_QZkrBvr8U6HLKh6YBRmnYaP-VRIzf3Mc2Jr0-FzpdhyNV_Mz0xMO3-rNZcB79SRa9sNeELDQrDYsBYD2LSv10nx76rMWC/s1600/servo-test_bb.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="340" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWf588bP-6lasNpIKu545rS95_3XGei9iqcGBm5we7oRIJ5U_QZkrBvr8U6HLKh6YBRmnYaP-VRIzf3Mc2Jr0-FzpdhyNV_Mz0xMO3-rNZcB79SRa9sNeELDQrDYsBYD2LSv10nx76rMWC/s400/servo-test_bb.png" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<i> DC motor(walang feedback)</i><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPevNAlB2Cu29TLzikCrr46WunxqeutOkIQPvJWhWrxVZqL5ar4KZ8AH659u8KEuBS7OxKNb-tTZL9NpKq5DyXzdiy4DHXVqmAbT6t9hD9e_QUTJZrR92KhMTwN0z4h5DI1Yd_BpYwheTs/s1600/motor.jpeg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="231" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPevNAlB2Cu29TLzikCrr46WunxqeutOkIQPvJWhWrxVZqL5ar4KZ8AH659u8KEuBS7OxKNb-tTZL9NpKq5DyXzdiy4DHXVqmAbT6t9hD9e_QUTJZrR92KhMTwN0z4h5DI1Yd_BpYwheTs/s400/motor.jpeg" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span style="background-color: #fff2cc;"><i><b>IV) Ang pagpaikot sa stepper motor,</b></i></span> ito ang motor na umiikot alinsunod sa pulso ng signal o voltahe. Ang pa bugso bugso lakas ng kuryente at boltahe na nag bibigay pwersa para ito umikot clockwise o kabalitan na ikot.<br />
<br />
<br />
Saro)Mapapansin ang nakakaibang dami ng wires na nakakabit sa stepper motor, at ito ay naiiba sa pangkaraniwang koneksyun ng ordinaryong motor lamang.Pansin ang mga kinakabitan ng kawad galing sa arduino at stepper motor.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGdXKnoXzydUaXQAK7Nlyg8FfB0mXGiCwqLySo_VLDeLNKeAse9_e4_ZdVfwdJ0uSBCeqrEcXwpwNcmk4V5oUz38wsAE_y1UqB6X506I6H1-aQ67HmFPPIzX008jZ7ahncVrLNqWE3P4yw/s1600/stepper_3_bb.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="186" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGdXKnoXzydUaXQAK7Nlyg8FfB0mXGiCwqLySo_VLDeLNKeAse9_e4_ZdVfwdJ0uSBCeqrEcXwpwNcmk4V5oUz38wsAE_y1UqB6X506I6H1-aQ67HmFPPIzX008jZ7ahncVrLNqWE3P4yw/s400/stepper_3_bb.png" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Duwa)<br />
<br />
<br />
<br />
<br />
Tulo)<br />
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<i><b><br /></b></i>
<b style="text-align: center;"><span style="font-size: large;"> PANGPITONG KABANATA</span></b><br />
(Mga analog at digital na sensors )<br />
<i><b><br /></b></i>
<i><b><br /></b></i>
<i><b><br /></b></i>
<i><b>V</b></i><span style="background-color: #fff2cc;"><i><b>)Sensor sa pagsukat ng halumigmig at temperatura ng isang bagay.</b></i></span><br />
Ang DHT11 ay ang pyesang kasama sa kit na magagamit para masukat<br />
kung gaano mamasa masa at kainit ang isang spasyo o bagay<br />
<br />
Saro)Tiyakin ang pag kakabit ng sensor sa kawad tungo sa header pin ng arduino<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVQrc9gTyHbk5kxnFgGvubZr2hxbhzFFpq8QFxaGL6E5mZDx5AMm1pWAJHbEEURQwOYpNAfageiPxNhppNAHPhboDoqOmsNQ3-R1CK_jtqv0p8c_gZSKokpmMKns0J8Q7zlIs2u12eSSSi/s1600/DHT.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="279" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVQrc9gTyHbk5kxnFgGvubZr2hxbhzFFpq8QFxaGL6E5mZDx5AMm1pWAJHbEEURQwOYpNAfageiPxNhppNAHPhboDoqOmsNQ3-R1CK_jtqv0p8c_gZSKokpmMKns0J8Q7zlIs2u12eSSSi/s400/DHT.png" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Duwa)Mapansin nyo ang mga pins na nag bibigay ng tanda kung saan ang kawad ng sensor ay ikakabit sa pin ng arduino<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjGzKHa8xV_CSyIMMgf2EHFhnGkOkFg7E5ofwZPqGeYvd6M4iQ2XOUYMmdSI46Sbl1P255jzYmk5iTjEIEkZlb9NbcLI5N5tiO8tfPtqeNhWsUQj6PnmUAn_o9a9OeMUOZjDUp0fRVUW9R/s1600/DHT11.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="237" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjGzKHa8xV_CSyIMMgf2EHFhnGkOkFg7E5ofwZPqGeYvd6M4iQ2XOUYMmdSI46Sbl1P255jzYmk5iTjEIEkZlb9NbcLI5N5tiO8tfPtqeNhWsUQj6PnmUAn_o9a9OeMUOZjDUp0fRVUW9R/s400/DHT11.png" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Tulo)Simpleng pag babago lang sa katumbas na bilang ng antala sa pag basa<br />
ng tanging halumigmig at temperatura <br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMO-pPFbrO-bK4fTLpFyO5CnyOyTZIQJxLAq7z2KdrZwZLhuqhwH_uEBhuqSmnNxaO4zOUlcKlzswcYl9cEYk0aDpv1jcT46kLC7AXAUTdbvNZUiZZWdYiQDmYhnivJCZXbdkTsBf62uH6/s1600/DHT-Reads.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="237" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMO-pPFbrO-bK4fTLpFyO5CnyOyTZIQJxLAq7z2KdrZwZLhuqhwH_uEBhuqSmnNxaO4zOUlcKlzswcYl9cEYk0aDpv1jcT46kLC7AXAUTdbvNZUiZZWdYiQDmYhnivJCZXbdkTsBf62uH6/s400/DHT-Reads.png" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Apat) Sa pagtatapos ng proyetktong ito,kinakailangan matutunan ang mga sumusunod:<br />
<br />
-Tamang
pag kakabitan ang kawad ng DHT sensor.Kailangan ito
para matiyak na maayos na dadaloy ang signal para mabasa ng Arduino ang data sa DHT module. <br />
-Ang pag pili ng sample code para sa sensor na kasama na sa software ng arduino<br />
-Ang
tamang pag tuklas sa configuration ng pin o terminal.Ang kakayahang baguhin source code para
mapag aralan kung paano katiyak o kahalaga ang mga bilang na mababasang maglalarawa sa lakas o hina ng temperatura at halumigmig.<br />
<br />
<br />
<br />
<b style="text-align: center;"><span style="font-size: large;"> PANG WALONG KABANATA</span></b><br />
(Mga palarawan o display )<br />
<br />
<b>VI)</b> <i><b><span style="background-color: #fff2cc;">Ang pagamit ng Liquid Crystal Display o LCD</span> </b></i>sa pag display ng output na literal na makikita sa screen nito. May laki at dami ng mga letrang alphabets ang kaya nitong ipakita na sapat sa screen nito. Ang modelo ng LCD ay 16x2 ito ay may dalawangpo na letra (20 characters) sa bawat hilera(row) na idi-display.<br />
Saro) Ang schematic ng LCD 16x2 at ng Arduino.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnTtP2pYJTGpCWnopfhmF9mGFBArroa0yXxffiC3vFpg60U0OHug7g08et4vcHAUOVnFkNESullbzHmTj8_FEyv2GU9T5KeO1Sah1VaZpcG-iPdYde4873QplGPihnr1YIVgIi_51p8jYL/s1600/LCD-16x2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="242" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnTtP2pYJTGpCWnopfhmF9mGFBArroa0yXxffiC3vFpg60U0OHug7g08et4vcHAUOVnFkNESullbzHmTj8_FEyv2GU9T5KeO1Sah1VaZpcG-iPdYde4873QplGPihnr1YIVgIi_51p8jYL/s400/LCD-16x2.png" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Duwa)<br />
<br />
<br />
<br />
Tulo)<br />
<br />
<span style="background-color: #fff2cc;"><b>VII) Ang pagamit ng Dot Matrix</b></span>, ito ay isa na namang pyesa para sa pag papalabas ng characters o anong hugis ayon sa program na ko-control dito gamit ang arduino. Kaya ito tinawag na dot matrix , ay sa dahilang mga tuldok na ilaw nakalagay dito, na bumuo sa kwadrong laki display. Malaman ang matrix nito na sukat sa bawat haligi na may hilera tuldok ng ilaw (column x rows). Halimbawa sa bawat 10 o sampong haligi ay may sampong tuldok na nakalagay, ibig sabihin ang kabuohang ilaw ay 10x10 o sandaang tuldok na iilaw at gagawa ng hugis at image na literal na makikita sa kwadro.<br />
<br />
Saro)<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiasTF2hoLuAklY9T05RzOQglGs4zIkyqYGqU0vLeCfC7wLwJwdNr4ULCkosMu99Rrk90-6f8UeOVZxBEHFNVTMuJkGoA39aZaaMZZscrQbtDP1buPGMHJcZeD-fH16dGMBlhaD7-yzgpbL/s1600/10x10.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="368" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiasTF2hoLuAklY9T05RzOQglGs4zIkyqYGqU0vLeCfC7wLwJwdNr4ULCkosMu99Rrk90-6f8UeOVZxBEHFNVTMuJkGoA39aZaaMZZscrQbtDP1buPGMHJcZeD-fH16dGMBlhaD7-yzgpbL/s400/10x10.png" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span><br />
<span style="background-color: white;">Duwa)</span><br />
<br />
<br />
<span style="background-color: #fff2cc;"><span style="background-color: white;">Tulo)</span><i><b> </b></i></span><br />
<br />
<br />
<br />
<br />
<b style="text-align: center;"><span style="font-size: large;"> PANG SIYAM KABANATA</span></b><br />
(Proyektong gamit ang RFID module )<br />
<br />
VIII)<span style="background-color: #fff2cc;"><b><i> Experimento patungkol sa pag babato at pagtangap ng data gamit ang RF ID</i></b></span> modules.Ang RF ID o Radio Frequency Identification Data modules ay magagamit natin para tuklasin ang pagbabato o pagtangap ng data na walang kawad o direktang nakakabit sa pagitan ng nag hahagis ng data signal patungo sa tagapagtangap nito. Ito ay dahil sa Radyo signal na bagaman di natin makikita subalit ang kabuoang lakas nito ay kaya nating maramdamang pisikal.<br />
<br />
Saro) <br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVebRFsXA1n77qiBQMTeEtY2dbfBK904GDhSk7J63HN_QlcAz9Q_IcKmpZkguCfzFUqtZN9KTB_css840CHTG5aqvH4Z3S8d91Lq0WE4tDyK1ZrrOqEAUVO6JWyg_OiF7J4sVQw1dP-pBb/s1600/rfid-fritzing.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVebRFsXA1n77qiBQMTeEtY2dbfBK904GDhSk7J63HN_QlcAz9Q_IcKmpZkguCfzFUqtZN9KTB_css840CHTG5aqvH4Z3S8d91Lq0WE4tDyK1ZrrOqEAUVO6JWyg_OiF7J4sVQw1dP-pBb/s400/rfid-fritzing.jpg" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Duwa)<br />
<br />
<br />
Tulo)<br />
<br />
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: right; text-align: left;"><tbody>
<tr><td style="text-align: center;"></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><br /></td></tr>
</tbody></table>
...Ipagpapatuloy....</div>
E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com3tag:blogger.com,1999:blog-8883986078765682368.post-2142430105303145752017-01-23T06:31:00.002-08:002017-08-02T18:10:15.870-07:00Arduino + Speech Recognition (Annyang / Jasper/pocketsphinx)<br />
<br />
Introduction<br />
<br />
<br />
<br />
<br />
<br />
Requirements:<br />
<br />
<br />
<br />
<br />
Procedures:<br />
<br />
sudo apt-get install git<br />
sudo apt-get install automake<br />
sudo apt-get install libtool<br />
sudo apt-get install bison<br />
sudo apt-get install python-dev<br />
sudo apt-get install swig<br />
sudo apt-get install make<br />
sudo apt-get install pkg-config<br />
git clone https://github.com/cmusphinx/sphinxbase.git<br />
cd sphinxbase<br />
./autogen.sh<br />
make<br />
sudo make install<br />
cd ..<br />
git clone git://github.com/cmusphinx/pocketsphinx.git<br />
cd pocketsphinx<br />
./autogen.sh<br />
make<br />
sudo make install<br />
cd ..<br />
<br />
sudo apt-get install ffmpeg<br />
<br />
<i>Using PocketSphinx</i><br />
Now just upload a wav file to your working directory. Note: Wave file needs to be mono channel, normalized, and 16000 sample rate.<br />
<br />
Use this to convert quickly online: http://audio.online-convert.com/convert-to-wav<br />
<div>
<br /></div>
<br />
ffmpeg -i input.mp3 -acodec pcm_s16le -ac 1 -ar 16000 output.wav<br />
<br />
To convert all mp3 files in a directory in Linux:<br />
for f in *.mp3; do ffmpeg -i "$f" -acodec pcm_s16le -ac 1 -ar 16000 "${f%.mp3}.wav"; \<br />
<br />
<br />
Without Timing<br />
<br />
pocketsphinx_continuous -infile sample.wav > decode-result.txt<br />
With Timing<br />
<br />
pocketsphinx_continuous -time yes -infile sample.wav > decode-result.txt<br />
<br />
Methodology<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Remarks<br />
<br />
<br />
<br />
<br />
Conclusions:E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com1tag:blogger.com,1999:blog-8883986078765682368.post-18877596954770579352016-12-04T22:10:00.002-08:002017-01-18T17:30:41.585-08:00Nano Pi NEO AIR <div>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFOb7TkFLf2zHomTsi23dZDseovJwYB3mGVDmyDjDL6fz6k1yTcl-3CoWYdn16LajGMRBQb9znhbHvfncah64L48h8rTORCId1RPrxavwD47Wn2a1NNKSbznRSrN8W7AngrTSNPmxkAo2L/s1600/NEO%252B+Air.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="265" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFOb7TkFLf2zHomTsi23dZDseovJwYB3mGVDmyDjDL6fz6k1yTcl-3CoWYdn16LajGMRBQb9znhbHvfncah64L48h8rTORCId1RPrxavwD47Wn2a1NNKSbznRSrN8W7AngrTSNPmxkAo2L/s400/NEO%252B+Air.jpg" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">NanoPi NEO Air</td></tr>
</tbody></table>
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<b>Introductions:</b><br />
<div style="text-align: justify;">
It was for a while that I did not post anything about single embedded board, but there were lots of stuffs which so intriguing to be tried and tested.It is just racing the different features of miniaturization,cost, compact form factors and of an IOT gadgets. NodeMCU wifi series such as ESP-1-14 version,which gave a slot for a cheaper or affordable price for IOT modules,also, lets add Orange Pi,BanaPi,M1-M2.Some smaller PC also were launched from the west Raspi Zero,Cherry computer and the rest of industrial grade tiny computer which are vying competitions in the enthusiast market.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Just recently, FriendlyArm company, pioneering the design of single board computer or embedded p.c. had launched their new NanoPi Series, which enticed compact and minute boards design yet including the new technical specs of their current rivals.Its a tiny PC for IOT, with price that is equivalent of a blue tooth modules 7$ to 15$ . In addition they also produced 64 bit of Octa-core CPU in a single board, thus enhancing the power of super computing at a very minimal price challenging the next version of RPi3. :)</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
So lets identify this new challenger seeking for the best spot of IOT modules in the geek world.NanoPi NEO and its series is small, square board, blue soldermask, ⌀3mm mounting holes in the corners. USB type-A, Ethernet jack (with integrated magnetics) and four-pin header for UART/power near one of the edges, microSD and USB micro-B at opposite edge mounted on top side, 12 and 24 GPIO pin headers (not fitted, pads only) near other edges. Allwinner H3 and single DDR3 chip mounted on the bottom. Sticker indicating amount of RAM is placed on the Ethernet jack. This device can also be ordered without USB and Ethernet soldered or you have an option for a built in wifi and eSD 8GB for a NanoPi Air.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
So lets start it , roll out the text,boot it up and configure it on our own accords.</div>
<div style="text-align: justify;">
<br /></div>
<b>Requirements:</b><br />
Hardware: NanoPi NEO/Air<br />
Software: Ubunto Core with Qt embedded ,eMMC eFlasher image<br />
<br />
<b>Objectives:</b><br />
Use to operate functions of a NanoPi<br />
Use a tiny module of computer for IOT application<br />
Use NanoPi NEO/Air via web controlled access<br />
<br />
<b>Procedures:</b><br />
1) Solder terminal pins in the debug serial port of a NanoPi NEO + Air<br />
Gently solder a tiny PCB pad with caution.<br />
<br />
2) Download NanoPi NEO Air images<br />
https://www.mediafire.com/folder/sr5d0qpz774cs/NanoPi-NEO_Air<br />
<table class="wikitable" style="background-color: #f9f9f9; border-collapse: collapse; border: 1px solid rgb(170, 170, 170); color: black; font-family: sans-serif; font-size: 14px; margin: 1em 0px;"><tbody>
<tr><td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em 0.4em;">nanopi-air-core-qte-sd4g.img.zip</td><td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em 0.4em;">Ubuntu core with Qt Embedded</td></tr>
<tr><td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em 0.4em;">nanopi-air-eflasher-sd8g.img.zip</td><td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em 0.4em;">eflasher image which can be used to Flash image files to eMMC</td></tr>
</tbody></table>
<br />
<span style="color: #b45f06;">3) We will install </span><span style="color: #b45f06;"> </span><span style="color: #b45f06;">these images using
the flasher utility. I've used windisk32image-xxx (
https://sourceforge.net/projects/win32diskimager/),to flash image
files in the TF card.</span><br />
<br />
<span style="color: #b45f06;"><b>Booting from a TF card Ubuntu Core:</b></span>
<span style="color: #b45f06;">3.a) By selecting the TF card drive (E,F,G),and browsing the image file location then click the "write" button-then it will flash the image to TF card</span><br />
<br />
<span style="color: #073763;"><b>Booting from an eMMC eFlasher image:</b></span>
<span style="color: #073763;">3.a) By selecting the SF card drive (E,F,G),and browsing the image file location ,click the "write" button to flash the image to eMMC.</span><br />
<br />
4)Connect NanoPi NEO Air to your PC using any TTL-USB Serial module(FTDxx,CPxx ). At this moment,<i> use the eFlasher images to avoid future problem in network address configurations.</i><br />
<br />
5) Download a serial console software ( I've used Putty in Ubuntu)<br />
Download <b>putty</b><br />
#sudo apt-get install putty<br />
<br />
6) Since we dont have a video(VGA/HDMI) display, a putty generated console requires a correct serial configuration for NanoPi Air screen outputs.<br />
# sudo putty -serial -sercfg 115200,8,n,1,N<br />
<br />
7)Open the serial console to observe scrolling text until....<br />
#FriendlyArm Login:<br />
Username is "root" and password is "fa"<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRxC-tjSja9NvtvkZwUajJ5NM4H9r_YgaypzU8NnzSHvV3sFzW1kAsIM-Q5Rja_OKO7xEib8zcCjYA6eUHaY4VQnAocqg27haGSXyD3PImPOPFJhFkbES_2cX13JffAXiolzG2iACpyrWp/s1600/NEO%252B+Air-CLI.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="257" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRxC-tjSja9NvtvkZwUajJ5NM4H9r_YgaypzU8NnzSHvV3sFzW1kAsIM-Q5Rja_OKO7xEib8zcCjYA6eUHaY4VQnAocqg27haGSXyD3PImPOPFJhFkbES_2cX13JffAXiolzG2iACpyrWp/s320/NEO%252B+Air-CLI.jpg" width="320" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
8) After logging into the console, extend rootfs section through NEO Air running UbuntuCore.<br />
#sudo fs_resize<br />
<br />
Please type "y" to start re-sizing the file system and a second "y" then the system will automatically reboot. After the reboot check the new sections including block drives using this cli command.<br />
#df -h<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwyUTK-w9-G2Sq0E-plNM3Z4Ytht5covjBHjIoovSiHvtajRFLtRfETuXwRT2SFJhVUHs8Gz7p1eSFRigGRScdA2luZDg1GFV_dxLyGnPBKBTFCZBRUbvcRYYRif_WukQ5G7aKJyWNbm3R/s1600/flash+Image+eMMC.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="237" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwyUTK-w9-G2Sq0E-plNM3Z4Ytht5covjBHjIoovSiHvtajRFLtRfETuXwRT2SFJhVUHs8Gz7p1eSFRigGRScdA2luZDg1GFV_dxLyGnPBKBTFCZBRUbvcRYYRif_WukQ5G7aKJyWNbm3R/s400/flash+Image+eMMC.png" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
9)..and to see if NanoPi Air is running the four (4) x processors, issue this command in the cli console.<br />
$cpu_freq<br />
<br />
10) You may check the network and if not configure yet,please go to the path under the rootfs section.<br />
# cd etc/wpa_supplicant/wpa_supplicant.conf <br />
<br />
11) Modify or change the content of the file "/etc/wpa_supplicant/wpa_supplicant.conf"<br />
#vi /etc/wpa_supplicant/wpa_supplicant.conf<br />
<div class="mw-geshi mw-code mw-content-ltr" dir="ltr">
<div class="bash source-bash">
<pre class="de1"><span style="color: #cc0000;"><span class="re2">ctrl_interface</span>=<span class="re2">DIR</span>=<span class="sy0">/</span>var<span class="sy0">/</span>run<span class="sy0">/</span>wpa_supplicant <span class="re2">GROUP</span>=netdev
<span class="re2">update_config</span>=<span class="nu0">1</span>
<span class="re2">network</span>=<span class="br0">{</span>
<span class="re2">ssid</span>=<span class="st0">"YOUR-WIFI-ESSID"</span>
<span class="re2">psk</span>=<span class="st0">"YOUR-WIFI-PASSWORD"</span>
<span class="br0">}</span></span></pre>
</div>
</div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqTVbufMxcE7GNKaF8gUkkVj08HhuMB3MB1Bi-jIc9fRJvnaMF2f-lNFT_LkJM-ZMWLtI1B5a5QeizPjShlQeonVpbB341dPZFjTNBISqEUsjgg4WY45C7VbGHDbdygxNJMcRMnpLHXajV/s1600/Network-OK.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="237" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqTVbufMxcE7GNKaF8gUkkVj08HhuMB3MB1Bi-jIc9fRJvnaMF2f-lNFT_LkJM-ZMWLtI1B5a5QeizPjShlQeonVpbB341dPZFjTNBISqEUsjgg4WY45C7VbGHDbdygxNJMcRMnpLHXajV/s400/Network-OK.png" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
12) To make the eMMC bootable even when there is no TF card .Running eFlasher utility command can flash Ubuntu-core to eMMC<br />
# flash_eMMC.sh -d /mnt/sdcard/Ubuntu-Core-qte/<br />
..after a successful eMMC flashing, this info is displayed <br />
#<b><span style="color: lime;">INFO flash system to eMMC success</span></b><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjINe9pUJWnpQrCASHmgHUk8E1nO8E-J6N3LelWfxZqlsPg6xVqg3wcZNBerJP4CdRq_zYdpua0qYS4OjVVNPuVF8L3OIGiVH2rbuF8XyhQOuQhxI6ov156WpJA2GxEs3mkDNT939tmYxa9/s1600/eMMC-Info.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="237" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjINe9pUJWnpQrCASHmgHUk8E1nO8E-J6N3LelWfxZqlsPg6xVqg3wcZNBerJP4CdRq_zYdpua0qYS4OjVVNPuVF8L3OIGiVH2rbuF8XyhQOuQhxI6ov156WpJA2GxEs3mkDNT939tmYxa9/s400/eMMC-Info.png" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
13) Save and reboot<br />
# updatedb<br />
#reboot<br />
<br />
14) Check the new configuration.<br />
<i>Hence , you can now proceed to additional installation </i><br />
<i>either via serial console or network s</i>sh<br />
#ssh root@IP_address<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7P6s0sUSevuqw7JgsyNLcnGlj-iT-n-iSHhI26T4YFASvKYVt_8TFdL4RXPwFLkmXXZt6YLTDC3duU2cfx5_osuPoC48U4Nz1YsFa2ZXdNrFYcvzOIZ46kpzcFQiTWKEcGJYebl5hbIX5/s1600/FInal-OK.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="237" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7P6s0sUSevuqw7JgsyNLcnGlj-iT-n-iSHhI26T4YFASvKYVt_8TFdL4RXPwFLkmXXZt6YLTDC3duU2cfx5_osuPoC48U4Nz1YsFa2ZXdNrFYcvzOIZ46kpzcFQiTWKEcGJYebl5hbIX5/s400/FInal-OK.png" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
NanoPI Air web system monitoring<br />
http://ip_address:8888<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7RDlgyknLe0aCs5vfvDAIJOmOLopUYokREFJn13iwk0pNL4eb6satcFnxyycG3UhuMoR51U_mFWiOB7Hc7CtahJBnig9aTfirSuZhz_rd0-wuzkveAwJuhjPX8ZMjRwU92_CBPG30LAN_/s1600/NanoPi.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="237" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7RDlgyknLe0aCs5vfvDAIJOmOLopUYokREFJn13iwk0pNL4eb6satcFnxyycG3UhuMoR51U_mFWiOB7Hc7CtahJBnig9aTfirSuZhz_rd0-wuzkveAwJuhjPX8ZMjRwU92_CBPG30LAN_/s400/NanoPi.png" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<b>Summary:</b><br />
<br />
<br />
<b>Conclusions:</b><br />
NanoPi Air is the smallest complete "Rockstar Server" in Diliman, Quezon City :)E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com0tag:blogger.com,1999:blog-8883986078765682368.post-15873012492221494722015-12-20T17:58:00.001-08:002017-01-05T01:21:15.139-08:00Controller 3D Printer...E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com0tag:blogger.com,1999:blog-8883986078765682368.post-25497083795327055142015-12-20T17:57:00.001-08:002017-01-05T01:21:44.017-08:00OpenCV -ArduinoE^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com0tag:blogger.com,1999:blog-8883986078765682368.post-36955789095825165822015-12-20T17:56:00.002-08:002017-01-05T01:19:55.772-08:00e-Gizmo 10644E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com0tag:blogger.com,1999:blog-8883986078765682368.post-90947680767124423062014-07-09T22:27:00.003-07:002015-01-22T01:00:28.515-08:00Buko Pi (Re-Inventing the Pi)<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRGkXWnWd-NRGlFwjQ6xEQoZO9E3xLpnR3ORF_W7SUsb5WF8Z4h_SbAupLRtbRD4quFQks1eoKrzQN-hCC_YhI7NXxLYFSGfBxJ2BJ0k0K2urJEPKFRq8SC5WjLF9KQVp4DX9Jj6T-hDVb/s1600/Buko+Pi2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRGkXWnWd-NRGlFwjQ6xEQoZO9E3xLpnR3ORF_W7SUsb5WF8Z4h_SbAupLRtbRD4quFQks1eoKrzQN-hCC_YhI7NXxLYFSGfBxJ2BJ0k0K2urJEPKFRq8SC5WjLF9KQVp4DX9Jj6T-hDVb/s1600/Buko+Pi2.jpg" height="400" width="290" /></a></div>
<b></b><br />
<b>Introduction:</b><span style="font-size: medium;"> </span><br />
<div style="text-align: justify;">
<br />
<span style="font-size: small;">I am a Linux enthusiast with more than a decade of experience in an embedded hardware/Software hobby, and a passion for an open source design as well. It is just a time to explore the vast possibilities of resources that the open community had shared to everybody. In my case, am willing to partake the computing industry-why? simple, all of us need computers from toys,tablet to high end servers. </span></div>
<div style="text-align: justify;">
<span style="font-size: small;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-size: small;">I do want to uphold the vision of <a href="http://www.raspberrypi.org/">Raspberry Pi(Banana Pi) project</a>, and other similar ARM allwinner make CPUs.Thus, I like to reinvent the Pi with better hardware and software specifications plus a DIY and experiment tutorials .See for example why use TV output for display when there are more available VGAs and HDMI hardware ? Why only use an OS where in a kernel compilation can embed code as built in function/s and make it stand alone device(its a monster MCU) ? And it's not only the
removable SD card but it also includes SATA port .This Buko Pi can boot up with variety of OS flavours such as
Debian Linux, Raspbien, Android, Arch Linux and so on. Well, since Microsoft had stopped Windows XP support cracker are invited all around the cyber to crack it and see if we can port the system as what Windows RT did. </span><br />
<br />
<span style="font-size: small;">So Buko Pi, is a very promising development board as there are more applications awaits to be deployed and implemented. As
long as Allwinners ,Rockchip,Linaro and other companies had opened their
development in the community; to those geeks who are willing to innovate
something for the usage of embedded system-its a big grace to thank
for.</span></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<span style="font-size: small;">My vision is to start with low-cost
and more hardware capabilities of Buko Pi that will suits to the need of academic community ,then we could foster lots
of contributions in the industrial,agricultural or in the scientific fields from
time to time. At least here in the archipelago; and so, be it happen folks! </span></div>
<div style="text-align: justify;">
<span style="font-size: small;"><br /></span></div>
<span style="font-size: small;"><br /></span>
<b>Requirements:</b><br />
<br />
<i>Software:</i><br />
Ubuntu/Debian Image<br />
https://github.com/LeMaker<br />
<br />
<i>Hardware</i><br />
Buko Pi<br />
SD Card/Sata Drive<br />
<br />
<br />
<b>Objectives:</b><br />
1) To test and enhance a dual core A20 development board<br />
2) Use Buko Pi for Linux (debian,Fedora,etc ) OS<br />
3) To use Ubuntu applications<br />
<br />
<br />
<b>Details:</b><br />
<br />
1) Buko Pi Development board<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhom0_-sQGhQpSpp17S94hjVv1ebMmKpXnK1wqvydq2ADqkYUjpy0_z3-1XuHwa1RZnjAWoCPHez3_8rAlzpn6ElaII0yGu4e3haOyOQPRPAXys6Eq30vHmscuWenB0gMqmyMLRCrVcway/s1600/Buko+Pi.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhom0_-sQGhQpSpp17S94hjVv1ebMmKpXnK1wqvydq2ADqkYUjpy0_z3-1XuHwa1RZnjAWoCPHez3_8rAlzpn6ElaII0yGu4e3haOyOQPRPAXys6Eq30vHmscuWenB0gMqmyMLRCrVcway/s1600/Buko+Pi.jpg" height="400" width="300" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
2) Buko Pi Operating system's compilation<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-K5kyJm58if9nQg7yYiHIjFJ-25pvaFbvinjAUYyujeeD_HrCw13HQrts_oAUWa6BA6yYM1JssBs0Lzxg9TznkhAnNUaKmeXj2kmP2Fh5t3jaa0Su4zXk9lmTNwCZtPcpjV6_gGmAeByl/s1600/Bukopi.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-K5kyJm58if9nQg7yYiHIjFJ-25pvaFbvinjAUYyujeeD_HrCw13HQrts_oAUWa6BA6yYM1JssBs0Lzxg9TznkhAnNUaKmeXj2kmP2Fh5t3jaa0Su4zXk9lmTNwCZtPcpjV6_gGmAeByl/s1600/Bukopi.png" height="191" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<b>Summary</b><br />
<br />
<br />
<b>Conclusions:</b><br />
<br />
Getting to know Buko PiE^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com3tag:blogger.com,1999:blog-8883986078765682368.post-72697814698890697142014-06-01T17:27:00.000-07:002015-02-02T17:47:06.312-08:00( RK3188/MK809 ) Embedded Web Server <b><br /></b>
<b>Introductions:</b><br />
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
For now, it is good that there are so many XBMC, mini-PC, dongle and stick available online. Local hobbyists are becoming very much more enthusiastic to learn new embedded system behind gadgets. To the younger generations,their interest and excitements show about popularity of techno hobby in our country. Well ,this is a good indications of imminent R&D community , start-ups on the rise, and more electronic hobbyists contributing their experiences to operate and tweak this micro embedded PC. Who knows anyway ?<br />
<br /></div>
<div style="text-align: justify;">
But my purpose is to have a cheaper computer that could saves a lot of cost , processing and external peripherals. A server for host testing and debugging which has a very minimal electricity consumption, portable,flexible and a pocket size computer. I have been testing my quad core micro server for a weeks now , and it gives me a very satisfying performance.So I decided to have a rough draft hoping to share technical information about implementing and deploying micro server using quad core Arm based mini stick pc. </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
By the way, I have discussed a while ago how to compile and flash kernel in the RK3188 /MK809 mini stick,just I need a little more screen shots for the additional details.<b><a href="http://cobecoballes-embedded.blogspot.com/2014/01/rk3188-minipc-booting-installing-linux.html" style="font-style: italic;">http://cobecoballes-embedded.blogspot.com/2014/01/rk3188-minipc-booting-installing-linux.html</a><i> .</i></b>I will be posting here the steps and procedures how to use this RK3188 quad-core CPU as a complete host server, as usual we have the basic application software to use. Our operating system will be debian a lubuntu /Picuntu NAND based for RK3188 cpu, and the rest are: Apache2,Php5 and MySQL . Let us also try sample application ,like web program and some scripts ,just comment below for some tips and clarifications about the post.</div>
<div style="text-align: justify;">
<br />
Before anything else, I would like to thanks the cyber folks who have spent time to contribute a lot so that all the technical developments are open resources.<br />
<br />
Thanks to all of you. </div>
<br />
<b>Requirements:</b><br />
<br />
<i>Hardware:</i><br />
RK3188 mini stick (quad core ARM CPU)<br />
<br />
<i>Software:</i><br />
Picuntu 4.4/4,5 or Lubuntu (RFS)<br />
Apache ,Nginx ,PHP5, MySQL,TigthVNCserver<br />
RKFlash<br />
<br />
<b>Objectives:</b><br />
To compile , install and boot Linux-Ubuntu (13.4) in RK3188 Mini PC<br />
To install Apache2, Nginx, Php5 and MySQL<br />
To deploy sample web program<br />
<br />
<b><br /></b>
<b>Methodology :</b><br />
<br />
1) Download Picuntu 4.5 Nand Basic GUI image<br />
http://www.g8.net/download/4.5/picuntu-4.5-basicgui-nand.7z<br />
<br />
2) Using RKFlash flash the image (see to it the you are in a debug mode -OTG)<br />
Please see to it that you have checked(/)<br />
- Parameter<br />
- Boot<br />
- Kernel<br />
-System<br />
and unchecked()<br />
Misc<br />
Recovery<br />
Back-Up<br />
<br />
Erase Nand then Flash ROM<br />
<br />
3) Access the new Picuntu (Lubuntu) OS<br />
username:root<br />
password: 12qwaszk<br />
<br />
3.1) Connect to Wireless network (using menu or shell)<br />
id:<br />
key:<br />
<br />
3.2) using shell network configurations<br />
root@g8picuntu# vim /etc/network/interfaces<br />
<br />
<span style="color: #783f04;">auto lo</span><br />
<span style="color: #783f04;"><br /></span>
<span style="color: #783f04;">iface lo inet loopback</span><br />
<span style="color: #783f04;">iface eth0 inet dhcp</span><br />
<span style="color: #783f04;"><br /></span>
<span style="color: #783f04;"># could be wlan1 ,wlan2</span><br />
<span style="color: #783f04;">allow-hotplug wlan0</span><br />
<span style="color: #783f04;">auto wlan0</span><br />
<span style="color: #783f04;"><br /></span>
<span style="color: #783f04;"><br /></span>
<span style="color: #783f04;">iface wlan0 inet dhcp</span><br />
<span style="color: #783f04;"> wpa-ssid "wifi ssid"</span><br />
<span style="color: #783f04;"> wpa-psk "wifi password"</span><br />
<br />
<br />
4) List of the download package<br />
root@g8picuntu# vim /etc/apt/source.list<br />
<br />
4.1) Update the package<br />
root@g8picuntu# apt-get update<br />
<br />
5) Install Apache2, Nginx, Php5 and Mysql<br />
<br />
root@g8picuntu# apt-get install apache2 ,nginx,, mysql-server libapache2-mod-php5 libapache2-mod-rpaf php5-mysql php5-curl php5-gd php-apc php5-mcrypt<br />
<br />
<br />
6.) Checking access through vnc<br />
root@g8picuntu# apt-get install tightvncserver<br />
root@g8picuntu# tightvncserver<br />
<span style="background-color: #fafafa;">password: "your password"</span><br />
<br />
6.1) Access IP-address of client PC ,examples 192.168.1.15:1<br />
<span style="background-color: #fafafa; color: #222222; font-family: monospace; font-size: 12px; line-height: 15.6000003814697px; white-space: pre-wrap;"><br /></span>7 ) Test sample program and lets get back to usual setting of an ordinary Linux box<br />
root@g8picuntu# cd /var/www/<br />
<br />
<b>Details:</b><br />
<b><br /></b>
<b>Details:</b><br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8KHqFbq6GrgGzCxLGDDCTeD6Ef-8UVYQK5ZI_UkeqCD28WPs9NITsFcv-jhtl938Dhii9lNovAn-OLHpZ3f64UV9IBG8UQiug19mekwxoqVkRvY4ejQ-Njz7b4WoMc7MNK5fGuWh0pi8p/s1600/apt-get+update-source.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8KHqFbq6GrgGzCxLGDDCTeD6Ef-8UVYQK5ZI_UkeqCD28WPs9NITsFcv-jhtl938Dhii9lNovAn-OLHpZ3f64UV9IBG8UQiug19mekwxoqVkRvY4ejQ-Njz7b4WoMc7MNK5fGuWh0pi8p/s1600/apt-get+update-source.png" height="250" width="400" /></a><b><br /></b>
<b><br /></b><br />
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<br />
<br />
<b>Details:</b><br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiejzOG3LH8hZ2gXh8O3bGix5fnjO60ft9GN36Mk7k15j4vol7SN7klQsq8bjxabWpxs7vqDakpJvr4xyznYOo79jrhwh5T_mvufktoJD7FycWmaMHt-PgAFsO-b3ZMoYlIQkBFKYjICuSi/s1600/apt-get+update.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiejzOG3LH8hZ2gXh8O3bGix5fnjO60ft9GN36Mk7k15j4vol7SN7klQsq8bjxabWpxs7vqDakpJvr4xyznYOo79jrhwh5T_mvufktoJD7FycWmaMHt-PgAFsO-b3ZMoYlIQkBFKYjICuSi/s1600/apt-get+update.png" height="250" width="400" /></a><br />
<br />
<br />
<b>Details:</b><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiltdMi0bZMsRjPAYn1bp31AeV7E3mzN8ym5XhWvvf0gsb_Bp0ScbEcHhMTXY_-hPFPQ42DFUq9mo6bU9ITH20kZM-ofpSBA55HHlJE11OTweU6sFwJaoEL2vYz7Zh7PZ__Sg0iNb8t3huO/s1600/RK3188-LXDE.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiltdMi0bZMsRjPAYn1bp31AeV7E3mzN8ym5XhWvvf0gsb_Bp0ScbEcHhMTXY_-hPFPQ42DFUq9mo6bU9ITH20kZM-ofpSBA55HHlJE11OTweU6sFwJaoEL2vYz7Zh7PZ__Sg0iNb8t3huO/s1600/RK3188-LXDE.png" height="310" width="400" /></a></div>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiejzOG3LH8hZ2gXh8O3bGix5fnjO60ft9GN36Mk7k15j4vol7SN7klQsq8bjxabWpxs7vqDakpJvr4xyznYOo79jrhwh5T_mvufktoJD7FycWmaMHt-PgAFsO-b3ZMoYlIQkBFKYjICuSi/s1600/apt-get+update.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><br /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<b>Summary:</b><br />
<br />
<br />
<br />
<b>Conclusions:</b><br />
<br />
<br />E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com1tag:blogger.com,1999:blog-8883986078765682368.post-74205769105407698112014-02-26T23:53:00.000-08:002014-05-30T17:24:08.040-07:00Minix NEO X5 booting in Linux(Ubuntu)<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6JNOGyHdbnazUA9VGstGIqFmhDqEPviznPS99A0aTqNZ5wizF_Dp4CYBEXWJJ7pdBAUIertW2L6vLgbxVR18h7KsX22-PaDHsQPKN1WbRAof0LoXgzHOfYRAmRLO5-lUDm2dVECoAOQSb/s1600/gparted.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJq1TITmdtLEaJOkQE9lwRcF8UxurG71DyRmsricwAqPKq0yZTv5UJy90oDe0KmgoJN9xvv-9QBhyvx3p4dv_tzKfPdrfe5nPvRQcbP9jNcAmkcNA2c3tLQt_or3Jp1YgILHDn8hE34Xd8/s1600/video.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjB15i2aQN2dDxFSb4bFNfI3C_f6_01DIVFjN1F4ibxt17JLVyf5QqOEQ814890Co3HsUlwlCDWRjJupeaS9398oRl15PsRDNVbYo2_qlYbwg9sxH2dFUs4hljdE4t_tl2cbBK-I88aXcZc/s1600/gparted.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCaYFkh1HpMMh7G4LyHhKVC5Czd-PVcRCCBPr0kwLWOCFCv7bohRYua8KrGk7HA6v9o2d5YrToC9Id7BHOyvdyyIqL5rfA8jOtj6vQUiXoXVSvbmypYMwJOliOIiigrzWtj7s6FfDato-T/s1600/CPU+History.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><br /></a>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsOp8Lz85HJQQKt_-lk-I8DX7UotZVQIAcTYzkxb2YC2Mj2KeDGi1PPU4C-BHDNeUHQ2ZvAgIu2J305HlQad7wRaCUGwbQXLwSn4RO_Fs8rAml5Un_2Me-0k7EVyIdhtUkHk0esI5BiFDo/s1600/minix_neo_x5_5.jpg" height="300" style="margin-left: auto; margin-right: auto;" width="400" /></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Minix NEO X5</td></tr>
</tbody></table>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<b>Introductions:</b><br />
<div style="text-align: justify;">
A couple of weeks ago ,I've noticed that a NEO X5 tv was still left unbox in the other corner of my cabinet ,so I sat down with my stuffs in my workbench and had a harder time of cracking Minix Neo X5 to function in Linux -Ubuntu.As what was expected,I should published blog before another Internet TV box will be ported in Linux OS(seemed I was obligated-huh!). Well, this could be a matter of re-orienting my e-hobby as I am rushing time for an activity which is so important than doing this one(<i>itanung nyo na lang kay Igorota</i>).But still, I decided to get all the bunch of paraphernalia -and there you have it now,a new cracked Linux OS for TV Minix box .<br />
<br />
Actually it's a sort of personal desire ,as I want to do the cracking entirely in Linux (pls. no windows) , and its hard to find a complete DIY of booting Minix box solely in the said platform .So I started looking for a rkflashtool (Rockchip Flasher tools and firmware) that could be flashed into its NAND memory of Minix NEO X5 .As usual,the technique is to modify the code by first finding usb ID address referring to the dual-core RK3066(this time the NEO X5) ,then changing the line parameter of rkflashtool.c is required .Additional info is the filesystem used to have the Minix boot to both ubuntu and customized Picuntu .</div>
<div style="text-align: justify;">
<br />
This scratch article will discuss the boot process used on the Minix Neo x5, and some
formats/contents of each NAND (aka ROM) partition.In this way,we can understand or manipulate the configuration of its build. Other geeks have a make up new 'rom's for the systems and produced these '.img's (recovery), and the documentation is here for those who
want to get in on the cracking.<br />
<br />
From the RK3066 Tech Ref Manual , the RK chip has a boot ROM and
some default operations to look for <i>suitable</i> boot partitions on NAND
and SDcard devices to power up things. Also, the <i>boot</i> code able to load the kernel and some
root <i>filesystem </i>to start running OS. The <i>system</i>, <i>cache</i>, <i>userdata</i> and <i>user</i> are normal
linux filesystems which can be done by mounting them in the SD card,<i> boot</i>
is a compressed bootloader code, <i>kernel</i> is the binary executable loaded and executed, <i>recovery</i> for an option of dual OS loading (Ubuntu/Android)<br />
<br /></div>
<div style="text-align: justify;">
Again, I would like to thanks the following geeks on the Cyber Web : view wizard,jps,olegk0,AndrewDB,Elona Dika and others for their contributions of booting NEO X5 in linux.This scratch article aims to share anyone the procedures ,source code, or a replacement build for
the NAND partition images.<br />
<br />
..............................enjoy the box build! -E^3 </div>
<b><br /></b>
<b>Requirements:</b><br />
Hardware:<br />
Minix NEO X5<br />
PC running in Linux<br />
OTG USB cable<br />
<br />
Software:<br />
Linux OS installed in your computer<br />
<br />
rkflashtool<br />
<span style="color: #38761d;"><i>https://github.com/linuxerwang/rkflashkit</i></span><br />
<br />
Ubuntu OS for the Minix NEO X5 <i> </i><br />
<span style="color: #38761d;"><i>https://googledrive.com/host/0BztHRbE8mM49TDc3WW1wMERUUkk/Ubuntu12.10_armhf_MINIXx5_CLEAN_ver0.1.tgz</i></span><br />
<br />
Picuntu OS for the Minix NEO X5<br />
<span style="color: #6aa84f;"><i>http://cdn02.arctablet.com/mirrors/picuntu_home-io/</i></span><br />
<br />
recovery image<br />
<span style="color: #38761d;"><i>https://googledrive.com/host/0BztHRbE8mM49TDc3WW1wMERUUkk/recovery.img</i></span><br />
<br />
<b>Objectives:</b><br />
To install and boot linux(Ubuntu) in a Minix NEO X5 <br />
To enhance linux application using Minix NEO X5<br />
To use Minix NEO X5 in a lowcost embedded computing projects<br />
<br />
<b>Methodology:</b><br />
<br />
<i><b><span style="color: #134f5c;">Step1: Flashing the firmware of Minix NEO X5</span></b></i><br />
1) Find the necessary tools for flashing firmware image in the SD card<br />
<div style="text-align: justify;">
root@locahost# wget <i><span style="color: blue;"> </span></i></div>
<span style="color: blue;"><i>https://github.com/justgr/arnova-tools/blob/master/rkflashtool/rkflashtool.c</i></span><br />
<i><br /></i>
2) Install the required USB software libraries in Linux OS<br />
<i><span style="color: blue;">root@localhost# sudo apt-get install libssl-dev libcrypto++-dev</span></i><br />
<br />
3) Press down the recovery(reset) button using a paper clip or pin that can eject/push switch inside the tiny hole.<br />
<br />
4) Power up the RK3066 device from only the OTG port using a standard usb cable<br />
<br />
<span style="color: red;"><i>Note:</i></span><br />
<i><span style="color: orange;">(special OTG cable required or shorting of the sense pins)</span></i><br />
<i><span style="color: orange;">Please plugged the OTG-USB cable into your PC (running linux.)</span></i><br />
<i><br /></i>
<i>5) </i>After 5 seconds release the button; at this point check USB properties.<br />
Run dmesg as you should see something liked detail 1<span style="color: blue;"><br /></span><br />
<span style="color: blue;"> </span><br />
<span style="color: blue;"><i>root@localhost# dmesg</i></span><br />
<br />
6) Run lsusb and make note of the device id<br />
<span style="color: blue;"><i>root@localhost# lsusb </i></span><br />
My Minix NEO X5 vendor ID is<span style="color: red;"> 2207:300a</span><br />
<br />
7)A vendor ID should be inserted in <i>rkflashtool.c</i> as liked in detail 2<br />
<span style="color: blue;"><i>root@localhost# tar -zxvf rkflashtool.tar.gz</i></span><span style="color: blue;"><i> </i></span><br />
<span style="color: blue;"><i>root@localhost# cd rkflashtool/</i></span><br />
<span style="color: blue;"><i>root@localhost# vim rkflashtool.c</i></span><br />
<br />
8)Let's compile the rkflashtool.c using gcc<br />
<span style="color: blue;"><i>root@localhost#gcc -o rkflashtool rkflashtool.c -lusb-1.0 -O2 -W -Wall -s</i></span><br />
<br />
<span style="color: #cc0000;"><i>Note: </i></span><br />
<span style="color: #cc0000;"><span style="color: orange;"><i>We're now ready to read the flash(a moment of truth :) ).</i><br />
<i>As a first step you may dumped the entire 8GB NAND flash as a backup like so</i></span><br />
<i> </i></span><br />
<span style="color: #cc0000;"><span style="background-color: lime;"><span style="color: black;">9)To backup the whole NAND-it will take sometime.</span></span><br />
<span style="color: blue;"><i>root@locahost rkflashtool r 0x00000000 0x01000000 > myflashbackup.bin</i></span></span><br />
<br />
<i>To quickly get an idea of where everything is in the flash you can
run CLI command below . It will reveal the parameters which include the
offsets for all images in NAND including boot, system and user.</i><br />
<span style="color: blue;"><i>root@localhost# hexdump -C myflashbackup.bin | more</i></span><br />
<br />
<span style="background-color: lime;">10) To grab the kernel do the following:</span><br />
<span style="color: blue;"><i>root@localhost# rkflashtool r 0x00004000 0x00004000 < minixkernel.img</i></span><br />
<br />
<span style="background-color: lime;">11) To upload a new kernel do the following:</span><br />
<span style="color: blue;"><i>root@localhost# rkflashtool e 0x00004000 0x00004000</i></span><br />
<span style="color: blue;"><i>root@localhost# rkflashtool w 0x00004000 0x00004000 < recovery.img</i></span><br />
<span style="color: blue;"><i>root@localhost# rkflashtool b</i></span><br />
<br />
<span style="background-color: lime;">12) To have a dual booting with Android or Linux</span><br />
<span style="color: blue;"><i>root@localhost# rkflashtool w 0x10000 0x8000 < recovery.img</i></span><br />
<span style="color: blue;"><i>root@localhost# rkflashtool b</i></span><br />
<br />
<i><span style="color: blue;"><br /></span></i>
<i><b><span style="color: #134f5c;">Step2:Partitioning the SD Card</span></b></i><br />
Partitioning your SD Card<br />
<span style="color: blue;"><i>root@localhost# sudo apt-get install gparted*</i></span><br />
<span style="color: blue;"><i>root@localhost# gparted</i></span><br />
<br />
1) Create an "ext4" partition<br />
2) resize the partition atleast 5GB or larger <br />
3) label it with "linuxroot"<br />
4) Downloaded and untar file from the site<br />
<span style="color: blue;"><i>root@localhost# tar xvzf /PATH/ubuntu/picuntu.tgz -C /media/linuxroot/</i></span><br />
<br />
<i><b><span style="color: #134f5c;">Step3:Installations and booting</span></b></i><br />
1) For wired network <br />
<span style="color: blue;"><i>root@localhost# nano /etc/network/interfaces</i></span><br />
<br />
2) For wireless uncomment wireless network ,and in <i>wpa-ssid</i> put the name of your network and <i>pasw</i><br />
<span style="color: blue;"><i> root@localhost# passwd dfasdf</i></span><br />
<span style="color: blue;"><i> root@localhost# iwconfig </i></span><br />
<span style="color: blue;"><i> root@localhost# reboot</i></span><br />
<br />
3) Install Xubuntu interface<span style="color: blue;"><i>root@localhost# sudo apt-get update</i></span><br />
<span style="color: blue;"><i>root@localhost# sudo apt-get install xubuntu-desktop</i></span><br />
<br />
4) Install Gnome interface<br />
<span style="color: blue;"><i>root@locahost# sudo apt-get install gnome</i></span><br />
<br />
5) Creating X11 folder <br />
<span style="color: blue;"><i>root@localhost# sudo mkdir /media/linuxroot/etc/X11/xorg.conf.d/</i></span><br />
<span style="color: blue;"><i>root@localhost# cp -r /PATH_TO_FILE/exynos5.conf</i></span><br />
<span style="color: blue;"><i>/media/linuxroot/etc/X11/xorrg.conf.d/</i></span><br />
<br />
6) Get the exynos5.conf file<br />
<span style="color: blue;">root@localhost#<i> wget </i><i><i><a class="externalLink" href="https://www.dropbox.com/s/locvo5eotzxjg13/exynos5.conf" rel="nofollow" target="_blank">https://www.dropbox.com/s/locvo5eotzxjg13/exynos5.conf</a></i> </i></span><br />
<br />
7.Start Minix and enjoy the interface<br />
a) Ubuntu <br />
username: ubuntu /password: ubuntu<br />
username: root/password: 1234<br />
<br />
b) Picuntu<br />
username: root / password: 12qwaszx<br />
username: picuntu /password: 12qwaszx<br />
MySQL username: root /password: 12qwaszx<br />
<br />
<b>Details:</b><br />
Details(1)Please run the lsusb command<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjXQ8RpSq5CDyTh549it9Wvqw8sMdkHT95I0WKjJWly6TDUIpUjLmnFOLAkIYy7O48-G2JZc0AbFyDeJ9_s-7bUfKZ6XsNbmlSkRh_aLhiG2469d-iyT-kh6cB_ASHYxCFglZKm97FvOak/s1600/lsusb.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjXQ8RpSq5CDyTh549it9Wvqw8sMdkHT95I0WKjJWly6TDUIpUjLmnFOLAkIYy7O48-G2JZc0AbFyDeJ9_s-7bUfKZ6XsNbmlSkRh_aLhiG2469d-iyT-kh6cB_ASHYxCFglZKm97FvOak/s1600/lsusb.png" height="167" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(2)After finding the vendors ID ,copy the highlighted code in the rkflashtool.c<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixalYRixAT_sOqXmFdLOpzI0G0fjohYVdegtdfQZYen-UgHN2nSbz95MEPHCI3Nci99MtK8DjRObf5722Vo106slmdvDPgaVq3Qb02FIaeTSK-gOaGdIfhAm3NyZu3eVnuGHt_TC6pLGs-/s1600/chnagerkflash.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixalYRixAT_sOqXmFdLOpzI0G0fjohYVdegtdfQZYen-UgHN2nSbz95MEPHCI3Nci99MtK8DjRObf5722Vo106slmdvDPgaVq3Qb02FIaeTSK-gOaGdIfhAm3NyZu3eVnuGHt_TC6pLGs-/s1600/chnagerkflash.png" height="306" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(3)Next run the dmesg command to find vendors ID<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_ujONwjNEfi1ND4L1OMXoGTB6U1iGOR6tS3ypr_bbTAIyYj13uSszqHI2ke30WaecmlTvn_pNLN8p97FXEvfxKOZ7hQb0UoQuxuXV9vA76EOIVZdptmqpH96GFmsY9rlYGbEpxWyIQni6/s1600/demsgMK80.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_ujONwjNEfi1ND4L1OMXoGTB6U1iGOR6tS3ypr_bbTAIyYj13uSszqHI2ke30WaecmlTvn_pNLN8p97FXEvfxKOZ7hQb0UoQuxuXV9vA76EOIVZdptmqpH96GFmsY9rlYGbEpxWyIQni6/s1600/demsgMK80.png" height="255" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(4) Linux logo indicates kernel proper loading<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK0t20Ybk8BIrcq5S7JhFRidjaE_UDq2kMFb8IdVe5XL_oTuI_S_bSYBg1jNaIKNJlKUc44O-HJW6wD3VHz-19v_OsL0UQWRBknR0E5JD_pOaJA-WYJ48CG21zLq0awu8VsBW24LwE9iUw/s1600/logoLinux.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK0t20Ybk8BIrcq5S7JhFRidjaE_UDq2kMFb8IdVe5XL_oTuI_S_bSYBg1jNaIKNJlKUc44O-HJW6wD3VHz-19v_OsL0UQWRBknR0E5JD_pOaJA-WYJ48CG21zLq0awu8VsBW24LwE9iUw/s1600/logoLinux.png" height="146" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(5) Partitioning SD Card using gparted command<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6JNOGyHdbnazUA9VGstGIqFmhDqEPviznPS99A0aTqNZ5wizF_Dp4CYBEXWJJ7pdBAUIertW2L6vLgbxVR18h7KsX22-PaDHsQPKN1WbRAof0LoXgzHOfYRAmRLO5-lUDm2dVECoAOQSb/s1600/gparted.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6JNOGyHdbnazUA9VGstGIqFmhDqEPviznPS99A0aTqNZ5wizF_Dp4CYBEXWJJ7pdBAUIertW2L6vLgbxVR18h7KsX22-PaDHsQPKN1WbRAof0LoXgzHOfYRAmRLO5-lUDm2dVECoAOQSb/s1600/gparted.png" height="271" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(6)CPU processing<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCaYFkh1HpMMh7G4LyHhKVC5Czd-PVcRCCBPr0kwLWOCFCv7bohRYua8KrGk7HA6v9o2d5YrToC9Id7BHOyvdyyIqL5rfA8jOtj6vQUiXoXVSvbmypYMwJOliOIiigrzWtj7s6FfDato-T/s1600/CPU+History.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCaYFkh1HpMMh7G4LyHhKVC5Czd-PVcRCCBPr0kwLWOCFCv7bohRYua8KrGk7HA6v9o2d5YrToC9Id7BHOyvdyyIqL5rfA8jOtj6vQUiXoXVSvbmypYMwJOliOIiigrzWtj7s6FfDato-T/s1600/CPU+History.png" height="297" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(7)Completing the package installation<br />
<b> </b><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguiRPNwJjuloH4bNx-9OiF-hl5PEje1VhhMjYEMJEqTbdktxNAwxIttr-NALcvXYipgCWbKt__gyz8ZnIAxPOMkv-H-eSZD3HxFWc7qXpUGaB0Gawi3a7wWaq5VMdP_zjqZsQj03IrOzWV/s1600/download.png" height="268" width="400" /><br />
<br />
Details(8)Setting proxy<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4530NvQ2YSCbgeUUWlGXbt5Q6dP5E2SNTIxXrrxU4NvZPZf5ZLDhop51eSTIXWXPP_aXKwIQPK3mHHQgcpg4h-AGBX5YxS9DpnARzdYTlvzHz083QVnQyy3pCVlzGo15UlS6nsw5YSzNZ/s1600/proxy.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4530NvQ2YSCbgeUUWlGXbt5Q6dP5E2SNTIxXrrxU4NvZPZf5ZLDhop51eSTIXWXPP_aXKwIQPK3mHHQgcpg4h-AGBX5YxS9DpnARzdYTlvzHz083QVnQyy3pCVlzGo15UlS6nsw5YSzNZ/s1600/proxy.png" height="240" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(9) IP address configuration (Wired /Wireless) <b><br /></b><br />
<img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvBN5hw3GptJfz2kxdJbibVuqHDW7UzN8WSZVdSSnfGEdEj5GbVt3pj9myXieMz7HWPSt0o23wrWs8jZmSdnvULWIlB2K6BoDkm-WF2AXZXtQrC7AAhWqmWXoZLtNPAT87gbl-WEFgxq_h/s1600/rootLinux.png" height="268" width="400" /><br />
<br />
Details(10)Minix NEO X5 Desktop (Gnome)<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNnLLxSfjCbw0SVn805ghdPeTalE9gdnP2wm43c2jkEuhgwo0jRwLKQkrVzOojmw3_z-cNEYrO60ipS3tdnzG29HyN2RvrD0dU9axKbhrdLsWPkFHu64Z7augqIXwJZcgzPV_hMYd2f5uj/s1600/screenshot.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNnLLxSfjCbw0SVn805ghdPeTalE9gdnP2wm43c2jkEuhgwo0jRwLKQkrVzOojmw3_z-cNEYrO60ipS3tdnzG29HyN2RvrD0dU9axKbhrdLsWPkFHu64Z7augqIXwJZcgzPV_hMYd2f5uj/s1600/screenshot.png" height="212" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(11) Running application in the box<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJq1TITmdtLEaJOkQE9lwRcF8UxurG71DyRmsricwAqPKq0yZTv5UJy90oDe0KmgoJN9xvv-9QBhyvx3p4dv_tzKfPdrfe5nPvRQcbP9jNcAmkcNA2c3tLQt_or3Jp1YgILHDn8hE34Xd8/s1600/video.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJq1TITmdtLEaJOkQE9lwRcF8UxurG71DyRmsricwAqPKq0yZTv5UJy90oDe0KmgoJN9xvv-9QBhyvx3p4dv_tzKfPdrfe5nPvRQcbP9jNcAmkcNA2c3tLQt_or3Jp1YgILHDn8hE34Xd8/s1600/video.png" height="202" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<b>Summary:</b><br />
1) Need to enhance 2D/3D graphics accelerations<br />
<br />
<br />
<b>Conclusions:</b><br />
<div style="text-align: justify;">
This concludes that booting and running Linux in Minix NEO X5 equals computing performance of a traditional PC but differs in power consumptions .Another is the flexibility and robustness of the box yet with an affordable price as compared to any thin clients or single board PC . </div>
<br />
<br />
<br />
<br />E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com60tag:blogger.com,1999:blog-8883986078765682368.post-53828426439784171482014-01-13T00:54:00.003-08:002014-01-21T23:55:29.999-08:00 Real-Time Data Aquisition online Graph (Arduino)<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLTHBPZTwfmsX9M1rs5J1_lvjz-qlCFR9LkqKgsl0104lKOPQbk2NosZlW2cs-vwdyNkdHMx8TymeEb6u69gPuPTbVqkCcJLkogo42z7Yb_YnNkqrxyaMtpTzj1-veLWVaIAReRw7vb1Bt/s1600/layout.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBjWCqCNoqbOMd_WtNF5ucwDVX0HUFMqVDU-55p3kL-mTtsZsPHRFogvwWDpyxS8O0KQQbMBv_oghjrpQdSKfoJwRV543dapqAm1WS7H4XnaTGtJ5lHdB372KDhSvErjaOrn3CU9eOURTg/s1600/flot.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBjWCqCNoqbOMd_WtNF5ucwDVX0HUFMqVDU-55p3kL-mTtsZsPHRFogvwWDpyxS8O0KQQbMBv_oghjrpQdSKfoJwRV543dapqAm1WS7H4XnaTGtJ5lHdB372KDhSvErjaOrn3CU9eOURTg/s640/flot.png" height="507" width="640" /></a></div>
<br />
<br />
<br />
<b>Introductions:</b><br />
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Its been a while that we had posted here the different tutorials ,DIY ,How-tos that discussed embedded system.But this time we'll be dealing with web programming and simple database to log data and graph the corresponding informations on the web.We also solicited tips and ideas about web programming especially Java-scripting; and I would like to mention them: Sir Tito,Richard and Sir Val as my buddy of experts in the said field. </div>
<div style="text-align: justify;">
<br />
Besides, we've crawled the net to select which available graphing tools are easy to used and offer a lot of features . As we google all the tips & tricks pertaining to this topic, it seems that geeks have their different scheme and designs how they graph data in the internet.Well, it depends upon us which of which tutorials meet our appetite to do internet of things-web data logging. By downloading all the resources , I came up with a simple technique on how to classify procedures graphing/charting data on-line either simple or complicated.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
A very good tips & trick to simplify the said system is to render the design and task into three procedures of simple open or close control system; and these are the following:</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<span style="color: blue;"><b>Input</b></span> ---------------------------------------><b><span style="color: blue;"> Process</span></b> -------------------------------------> <b><span style="color: blue;">Output</span></b></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>Input/s</b> . These are the source of signals analogue /digital coming from your sensors or transducer .<br />
In our discussion , temperature ,humidity ,light sensor signals.All these inputs are being feed trough an I/O communication port (rs232,i2C ,SPI ) of microcontroler (Arduino) .Our MCU will handles channelling and protocols before we proceed into the stage of processing. <br />
<br /></div>
<div style="text-align: justify;">
<b>Process. </b>A stage where we contained , modify , grouped and the conversion of various
formats of data .In this stage ,data type were already identified ,yet web protocols will decode it as as series of string like format of data. <br />
In our discussion , data will be populated , stored and polled from MySql and update of its database sets only to the first row id. PHP script will echo rows of data queried by JavaScript .This row of data from record set will be parsed inside the html program .Therefore polled data serve as the parameter being process as a substitute to the coordinates of lines to be plot in the chart.<br />
<b><br /></b>
<b>Outputs</b>. A stage where data is being interpreted and results to a sensible and definitive informations.It could be further used as reference to the previous stages.In our discussion , we simply plot the data and produce a meaningful graph or chart.</div>
<div style="text-align: justify;">
<br />
So what are we waiting for? Get the code and start running until we can think another ideas that required us web programming and on-line data logging.Please follow the tutorials as enumerated below.<br />
<br />
Cheers!<br />
<br />
<br /></div>
Note:<br />
<i>You may use the myC.c to simulate inputs from MySQL so that we can run the program without MCU at first.</i><br />
<br />
<br />
<br />
<b>Requirements:</b><br />
<br />
<span style="color: #0b5394;"><i>Software:</i></span><br />
Linux OS : <i>Fedora/Ubunto</i><br />
Flot library (<i>http://code.g<span style="background-color: white;"></span>oogle.com/p/flot</i>/)<br />
PHP5 /JavaScript<br />
APACHE<br />
MYSQL<br />
<br />
simpleFlot.zip <span style="color: #6fa8dc;"><i><a href="https://attachment.fbsbx.com/file_download.php?id=249896215178478&eid=ASulqPMaOsMEgZ1Thyo7RyqP-tVtElXuHqI-CToU6gi3MqouQbuXZARcHfM-gQ4zNIA&ext=1389676849&hash=ASsPAh2tYL_2Cn2o" target="_blank">https://attachment.fbsbx.com/file_download.php?id=249896215178478&eid=ASulqPMaOsMEgZ1Thyo7RyqP-tVtElXuHqI-CToU6gi3MqouQbuXZARcHfM-gQ4zNIA&ext=1389676849&hash=ASsPAh2tYL_2Cn2o</a></i></span><br />
<br />
<span style="color: #0b5394;"><span style="background-color: white;"><i>Hardware:</i></span></span><br />
PC Server: Xitrix i7 (<i>optional</i>)<br />
MCU -Arduino Mega 2560<br />
<br />
<br />
<b>Objectives:</b><br />
1) To store data coming from an Arduino based sensors using mysql <br />
2) To poll stored data from mysql using PHP and JavaScript<br />
3) To display the chart or graph o real-time data acquisition online<br />
<br />
<b>Methodology:</b><br />
1) Download or installed all required softwares<br />
root@localhost# yum install httpd* mysqld* php5*<br />
<b></b><br />
3)Getting flot files<br />
root@localhost# wget http://www.flotcharts.org/downloads/flot-0.8.2.zip<br />
root@localhost# unzip flot-0x.x.zip<br />
root@locahost# cd /flot/examples/realtime/<br />
<br />
4) Data base using MySQL<br />
...create database <br />
mysql> create database sensorDB; <br />
mysql> use sensorDB;<br />
<br />
..create table <br />
mysql> create table sensorData ( A integer not null, B integer not null);<br />
<br />
..populate data <br />
mysql> insert into sensorData(sensorid,Light) values(1,45);<br />
<br />
..check simple schema <br />
mysql> describe sensorData;<br />
<br />
..check stored data <br />
mysql> select *from sensorData;<br />
<b></b><br />
<b><br /></b>
5) Simulating data inputs in MySql using C<br />
Compiling myC.c<br />
root@localhost# gcc -Wall -o myC myC.c `mysql_config --cflags --libs`<br />
root@localhost# ./myC<br />
<br />
<b><br /></b>
<b>Details:</b><br />
<br />
Details(0) Download site for flot software<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgksgKJTOwJPq2Ve_lQqo6gaCB1McU7TZbhnp5WwHVLvWN-_vivr7osjAkGkodBAVYCodUASw77VvLOv0U-3XLmIENmENKuOdMVqlrhTDvxuz102_G5IXkdM476Ays8e-qo7QM7WQK6MRzW/s1600/siteFlot.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgksgKJTOwJPq2Ve_lQqo6gaCB1McU7TZbhnp5WwHVLvWN-_vivr7osjAkGkodBAVYCodUASw77VvLOv0U-3XLmIENmENKuOdMVqlrhTDvxuz102_G5IXkdM476Ays8e-qo7QM7WQK6MRzW/s400/siteFlot.png" height="282" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(1) Web directory and files <a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglGz0xWnly0sxjRbE8yL_Cpg8DStuFccnpY2BgTRXZ0crpDpmMuxo55zgQmZFKeoJIPZKIGOqUM3-YVBjTeBp120b26rJc0uOCytfGx4AEV1QXSSSMYs8sXAPvunXJ-zYFhmmZaPycLrm_/s1600/filesFlot.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglGz0xWnly0sxjRbE8yL_Cpg8DStuFccnpY2BgTRXZ0crpDpmMuxo55zgQmZFKeoJIPZKIGOqUM3-YVBjTeBp120b26rJc0uOCytfGx4AEV1QXSSSMYs8sXAPvunXJ-zYFhmmZaPycLrm_/s400/filesFlot.png" height="252" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(2) C program for MySQL<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtO_ADt1OyRm-QItef5WkT23cmFumTMhqgRsRCOSfCJyQ5C973JMI9YtiKZZO9WC36S7eTQHYjulRAXuxo1vuuOQi3G524zOnnNrg96gofeBPmIPr1MFzvGQq-jtL0p-LlpNKhFJYUweSb/s1600/myC.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtO_ADt1OyRm-QItef5WkT23cmFumTMhqgRsRCOSfCJyQ5C973JMI9YtiKZZO9WC36S7eTQHYjulRAXuxo1vuuOQi3G524zOnnNrg96gofeBPmIPr1MFzvGQq-jtL0p-LlpNKhFJYUweSb/s400/myC.png" height="255" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(3) PHP script to poll data from MySql<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0meG1-eXqtDZqoS9sY1MUk1PFEkWPjhcai-gywe7F3M4lYaVhWJRc6D-ZXsVcf0D_u1ZeUWr-IBP-fy8PgSrBViT0tGANtNqTiyzkGbHZTp2zBijNtJ3G7OyJ0s-hta0SgnZfN_Bc792o/s1600/pollDB.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0meG1-eXqtDZqoS9sY1MUk1PFEkWPjhcai-gywe7F3M4lYaVhWJRc6D-ZXsVcf0D_u1ZeUWr-IBP-fy8PgSrBViT0tGANtNqTiyzkGbHZTp2zBijNtJ3G7OyJ0s-hta0SgnZfN_Bc792o/s400/pollDB.png" height="307" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(4) JavaScript using Flot graphics libraries <br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhA8WyT5UpovvJBezzLURZGOH9LeHLJrRavpayY6UqLp37Mdn-Z34pyZ_zvgCAF30HD8dR82dQamXlY6joN2quP5gI_qx5CGztWXPY2ROJFN5gB_dyqYO1NP_oMw20upCbj91qtk56Mxlvg/s1600/flotJScript.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhA8WyT5UpovvJBezzLURZGOH9LeHLJrRavpayY6UqLp37Mdn-Z34pyZ_zvgCAF30HD8dR82dQamXlY6joN2quP5gI_qx5CGztWXPY2ROJFN5gB_dyqYO1NP_oMw20upCbj91qtk56Mxlvg/s400/flotJScript.png" height="223" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Detail(5) CSS code<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLTHBPZTwfmsX9M1rs5J1_lvjz-qlCFR9LkqKgsl0104lKOPQbk2NosZlW2cs-vwdyNkdHMx8TymeEb6u69gPuPTbVqkCcJLkogo42z7Yb_YnNkqrxyaMtpTzj1-veLWVaIAReRw7vb1Bt/s1600/layout.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLTHBPZTwfmsX9M1rs5J1_lvjz-qlCFR9LkqKgsl0104lKOPQbk2NosZlW2cs-vwdyNkdHMx8TymeEb6u69gPuPTbVqkCcJLkogo42z7Yb_YnNkqrxyaMtpTzj1-veLWVaIAReRw7vb1Bt/s400/layout.png" height="317" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(6) Simulating input to mysql-C program<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj15ENGp9GKEJwQhYIn3nLPTgjpS2f2grZLjYHGSL-Nr-SA-09N6FDs4KHGQeqhfDsOwITSSgvP3aMOUSa09M_orUiOIQ2vMG_Y6Idfn-DQCTjfJHNAfUz28fADVSv2mhmVOv3YM4YZ4g-m/s1600/mysql+C+simulation.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj15ENGp9GKEJwQhYIn3nLPTgjpS2f2grZLjYHGSL-Nr-SA-09N6FDs4KHGQeqhfDsOwITSSgvP3aMOUSa09M_orUiOIQ2vMG_Y6Idfn-DQCTjfJHNAfUz28fADVSv2mhmVOv3YM4YZ4g-m/s400/mysql+C+simulation.png" height="90" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
Detail(7) Web real-time chart/graph demo <br />
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.blogger.com/video.g?token=AD6v5dxbyIEUJcUfd6I7kwqeCgxh1Ynge2G9MtVLUQsv_pLNuI8fiWH1CR3lkmpxjzTnxZI9yugQ9PmdMZsRx-Kl-w' class='b-hbp-video b-uploaded' frameborder='0'></iframe><br />
<br />
<b>Remarks:</b><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj15ENGp9GKEJwQhYIn3nLPTgjpS2f2grZLjYHGSL-Nr-SA-09N6FDs4KHGQeqhfDsOwITSSgvP3aMOUSa09M_orUiOIQ2vMG_Y6Idfn-DQCTjfJHNAfUz28fADVSv2mhmVOv3YM4YZ4g-m/s1600/mysql+C+simulation.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b>Conclusions:</b><br />
A simple start of graphing data online<br />
<b><br /></b>E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com3tag:blogger.com,1999:blog-8883986078765682368.post-4927028758105684232014-01-04T07:31:00.003-08:002014-05-18T09:03:58.466-07:00RK3188(MK802IV) Bootloading & Installing Linux-PicUntu<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXxGAm7lOGP-vBEPizPXgIC4yxEWQ5D6dYt_huEzrlx6-3cCOq79nda2iSroTDJnopdq9JI9PbxDLZuYFVya9pntZATW0tyUjDG5NssH9vKO5_1Pprehh-38VxxpoM31v06Ipu0248H7lV/s1600/rkflashtool+CLI+.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifbI6Ee3VM7QI-eh8zFifyadoEg0GDTkVLs3xrRftN4aluyHu-5HyhFW9SvZJuN0Ox_az4cnkbRjm6cI-MTT26tihlZekmu1kWKyw5atdGP65PgPPfpNA-MQBU-6e8I8TWe9R6mIj5lSb0/s1600/ID2207:310b.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqn2zIFrOwaPl03KKuyqAL65evgz-sVnOFA4CEolxtgvzTTWv3AHnsYdouAolAZlv3LHgXCH5KfgZz4_FX3WDZPGNKzbYqm7y15g7fmVv9AAWiN9T4NHtd8h-HTK6P_s0fK8IybiMMdMhN/s1600/RK3188-CS898.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqn2zIFrOwaPl03KKuyqAL65evgz-sVnOFA4CEolxtgvzTTWv3AHnsYdouAolAZlv3LHgXCH5KfgZz4_FX3WDZPGNKzbYqm7y15g7fmVv9AAWiN9T4NHtd8h-HTK6P_s0fK8IybiMMdMhN/s1600/RK3188-CS898.png" height="318" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">CS898 RK3188 Quad Core (1.8Ghz) <span style="background-color: white;">:<span style="color: blue;"> </span></span><span style="background-color: #3d85c6;"><i><span style="background-color: white;"><span style="color: blue;">ceoOutlets</span></span></i></span></td></tr>
</tbody></table>
<br />
<br />
<b>Introductions:</b><br />
So now I got a quad-core TV stick please bare with me the excitement of hacking this gadget.Just recently , I did the tweaking of previous dual-core mini-stick OS from android to Linux and exploring its kernel was in-fact a great challenge of cracking skills-fortunately there were hints on the net. <br />
<br />
<br />
<br />
<br />
<b>Requirements:</b><br />
PicUntu-1.4.5 <span style="color: #b45f06;"><i>-https://github.com/aloksinha2001/Linux3188/blob/master/picuntu-kernel-4.5.img</i></span><br />
PicUntu file system<span style="color: #b45f06;"><i>-http://www.g8.net/download/picuntu-4-4.tgz</i></span><br />
rkflashtool GUI based Linux<span style="color: #b45f06;"><i>-https://github.com/linuxerwang/rkflashkit</i></span><br />
rkflashtool CLI based Linux<span style="background-color: white;"> <span style="color: #b45f06;"><i>-https://github.com/Galland/rkflashtool_rk3066</i></span></span><br />
cs898 MK809/RK3188 mini PC stick<br />
<br />
<br />
<b>Objectives:</b><br />
To install and boot Linux in the RK3188 mini PC-stick<br />
To implement embedded single PC board with quad-core<br />
To re-customized the size of Picunto software.<br />
<br />
<br />
References:<br />
<span style="color: #0b5394;"><i>1) http://www.freaktab.com/showthread.php?6930-PicUntu-4-4-Rootfile-system</i></span><br />
<span style="color: #0b5394;"><i>2)http://www.freaktab.com/showthread.php?6803-Linux-for-RK3188-based-TV-boxes/page6</i></span><br />
<br />
<b>Details: </b><br />
<br />
<br />
Details(1) Finding a new device ID <br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifbI6Ee3VM7QI-eh8zFifyadoEg0GDTkVLs3xrRftN4aluyHu-5HyhFW9SvZJuN0Ox_az4cnkbRjm6cI-MTT26tihlZekmu1kWKyw5atdGP65PgPPfpNA-MQBU-6e8I8TWe9R6mIj5lSb0/s1600/ID2207:310b.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifbI6Ee3VM7QI-eh8zFifyadoEg0GDTkVLs3xrRftN4aluyHu-5HyhFW9SvZJuN0Ox_az4cnkbRjm6cI-MTT26tihlZekmu1kWKyw5atdGP65PgPPfpNA-MQBU-6e8I8TWe9R6mIj5lSb0/s1600/ID2207:310b.png" height="232" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(1.a) rkflashkit GitHub site -"Galland"<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXxGAm7lOGP-vBEPizPXgIC4yxEWQ5D6dYt_huEzrlx6-3cCOq79nda2iSroTDJnopdq9JI9PbxDLZuYFVya9pntZATW0tyUjDG5NssH9vKO5_1Pprehh-38VxxpoM31v06Ipu0248H7lV/s1600/rkflashtool+CLI+.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXxGAm7lOGP-vBEPizPXgIC4yxEWQ5D6dYt_huEzrlx6-3cCOq79nda2iSroTDJnopdq9JI9PbxDLZuYFVya9pntZATW0tyUjDG5NssH9vKO5_1Pprehh-38VxxpoM31v06Ipu0248H7lV/s1600/rkflashtool+CLI+.png" height="341" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(2.b): RKFlashTool CLI based<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4suR4GW3e69-8KtXweU6pGbMUyq0pmZ-W_mC8-7vncGAN_h7GxDHrfj9dAvEcfPI30Kk_RutRVsEsFVT0EUGbQHTpCoe6LbYnViuHRCsqKvbE-2CK1uQBg1iRfcoTNtkk02YCPIF79leU/s1600/rkflashCLI.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4suR4GW3e69-8KtXweU6pGbMUyq0pmZ-W_mC8-7vncGAN_h7GxDHrfj9dAvEcfPI30Kk_RutRVsEsFVT0EUGbQHTpCoe6LbYnViuHRCsqKvbE-2CK1uQBg1iRfcoTNtkk02YCPIF79leU/s1600/rkflashCLI.png" height="400" width="338" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(2.c) Dump 3K3188 parameters<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnQrrpF9TuIKETqaGgVY1tLMdguh6qLNJQ38LQRol2Vfu2wc3dlvguXiAFlERBnNb-XOPdJNjt5iM-tZhvazFLxRsJx1FN6dZGBZ5zVpILeZXLr-RjVM5aCtYdOh8uVtD6ETttbrO0GVya/s1600/rk3188-parameters.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnQrrpF9TuIKETqaGgVY1tLMdguh6qLNJQ38LQRol2Vfu2wc3dlvguXiAFlERBnNb-XOPdJNjt5iM-tZhvazFLxRsJx1FN6dZGBZ5zVpILeZXLr-RjVM5aCtYdOh8uVtD6ETttbrO0GVya/s1600/rk3188-parameters.png" height="48" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
Details(3.a): Rkflashkit GitHub site -"linuxwang "<br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-B2NyOlpRUwapVt0f5MFL-oZOfznSnfa0umjC-HUaEHQZ488VXbS-F8m4MPvJfrzZbrJEqV9p5vQjG_iXjdxy40VluV1GDPHlFnT8k8An4m65uMRcYaxGXO8AwHjUDfauOwGhEp83kXqT/s1600/Download.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-B2NyOlpRUwapVt0f5MFL-oZOfznSnfa0umjC-HUaEHQZ488VXbS-F8m4MPvJfrzZbrJEqV9p5vQjG_iXjdxy40VluV1GDPHlFnT8k8An4m65uMRcYaxGXO8AwHjUDfauOwGhEp83kXqT/s400/Download.png" height="258" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(3.b): selecting binary file for RKFlashTool GUI based<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSFT6djjprSgs_jmQypXvZmNBq3Ei3AUrBCCmBQNEv7msWEZssCSLlsNNpHGthckw_VxUcBW08uN-8zQDGojzNUBbkVqug5lVZ123uliFNoKUzVB9AyzRsl-x9SvtQU3OmdfMIFH5PaxAv/s1600/flasherPath.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSFT6djjprSgs_jmQypXvZmNBq3Ei3AUrBCCmBQNEv7msWEZssCSLlsNNpHGthckw_VxUcBW08uN-8zQDGojzNUBbkVqug5lVZ123uliFNoKUzVB9AyzRsl-x9SvtQU3OmdfMIFH5PaxAv/s400/flasherPath.png" height="337" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(3):Installed rkflasher appeared in the software center<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUvCjxLwuAgBI1q6ZC3ithe_Kf-H2DhzVuw-M8ToVd8XKCPyqDLstoS32FRmgTNZVYH6zdQKeIIq8yp64ynNUyrfNdkoCJmwQqoJ0P-ue4wNUUpvNsjDnNOBcSdqr5ly7kj1mDqagNmZ53/s1600/installedRK.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUvCjxLwuAgBI1q6ZC3ithe_Kf-H2DhzVuw-M8ToVd8XKCPyqDLstoS32FRmgTNZVYH6zdQKeIIq8yp64ynNUyrfNdkoCJmwQqoJ0P-ue4wNUUpvNsjDnNOBcSdqr5ly7kj1mDqagNmZ53/s400/installedRK.png" height="386" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(3) RKFlasher gui<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUxswOdo-IeRudXMXCmKdiIn9HczOWnxASTu7vDcRk7MFPdLaL2aRKGyuGtOJOP-aSKDLXJenOStOmswHdG5CWIqLcQu9NnJaOpcSwOA5KJyAGg1u8b2uqr4afAl8J3eRF1GeWrS7UWdFV/s1600/RKFlashKit.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUxswOdo-IeRudXMXCmKdiIn9HczOWnxASTu7vDcRk7MFPdLaL2aRKGyuGtOJOP-aSKDLXJenOStOmswHdG5CWIqLcQu9NnJaOpcSwOA5KJyAGg1u8b2uqr4afAl8J3eRF1GeWrS7UWdFV/s400/RKFlashKit.png" height="297" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
.. to be continued.... <br />
<b><br /></b>
<b>Remarks:</b><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<b>Conclusions:</b><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-B2NyOlpRUwapVt0f5MFL-oZOfznSnfa0umjC-HUaEHQZ488VXbS-F8m4MPvJfrzZbrJEqV9p5vQjG_iXjdxy40VluV1GDPHlFnT8k8An4m65uMRcYaxGXO8AwHjUDfauOwGhEp83kXqT/s1600/Download.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><br /></a></div>
E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com4tag:blogger.com,1999:blog-8883986078765682368.post-5504278689269393532013-12-06T00:08:00.000-08:002013-12-10T01:06:26.068-08:00Controlling & Programming Raspberry Pi (GCC/G++)<b><br /></b>
<b>Introduction:</b><br />
mysql in c<br />
lpcap in c<br />
serial in c<br />
get time in c<br />
raspberry Pi pure C<br />
<br />
<br />
<b>Requirements:</b><br />
<br />
<i>Hardware: </i><br />
Raspberry Pi board version B<br />
SD Card<br />
<br />
<i>Software:</i><br />
Win32sdkimage<br />
Raspberrian Image<br />
Slitaz Image<br />
Gcc/G++<br />
<br />
<br />
<b>Objectives:</b><br />
<br />
<br />
<br />
<b>Methodology:</b><br />
<br />
<br />
<br />
<br />
<br />
<b>Summary:</b><br />
<br />
<br />
<br />
<b>Remarks:</b><br />
<br />
<br />
<b>Conclusion: </b>E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com0tag:blogger.com,1999:blog-8883986078765682368.post-78052180772811176572013-11-05T19:20:00.001-08:002014-01-10T20:17:05.309-08:00e-Gizmo AVR32 GCC IDE:Bootloading &Programming<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhODn-nxpglrvzPRrnU9JK1tMvylS_Bzy1jzs9ogC83zNdxwjUDdkIGE4mOKH-iTtZKstKVy37ckBnBGKYoNTjxNQ0YHgkip02m37YIMAiiTse4A0fRp6WvB4wnwlJPqExO6OivnBaRltP4/s1600/AVRBatchISP.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjscya95tPYClrCYfCn2YtTXTcD3UA7hnzTduxhbObOQFPxWgTWfTUIjPdZFG0Rqx8ksDkqvAEwgZMCejGwnMrCYu0M0EJa4vIrJG2dUchfziytacc2ounGiLycPQFOV0AUa7tRSxcHTQYb/s1600/avr32-400.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjscya95tPYClrCYfCn2YtTXTcD3UA7hnzTduxhbObOQFPxWgTWfTUIjPdZFG0Rqx8ksDkqvAEwgZMCejGwnMrCYu0M0EJa4vIrJG2dUchfziytacc2ounGiLycPQFOV0AUa7tRSxcHTQYb/s400/avr32-400.png" height="305" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">AVR32 Module e-Gizmo</td></tr>
</tbody></table>
<br />
<br />
<br />
<b>Introductions:</b><br />
<br />
<div style="text-align: justify;">
<div style="text-align: justify;">
Hello Dabarkads;maybe a week ago or so that our familiar local geek's store (e-Gizmo) had cooked another gadget for us -a considerable cheap,powerful and fast MCU which has a promising wide applications.This is an AVR32 (AT32UC3L0128) with 50MHZ clock,SPI,I2C,128KB(Flash) and more in a sort dongle type of modular package .So let's again give some important tips & tricks of creating a gcc IDE using an Eclipse development environment. This post in my blog details the steps used to get gcc running in our own workspace. Unfortunately, setting up
Eclipse as an environment to develop gcc is non-tasky. To tell you folks, having a GUI to some CLI based compilers such as SDCC,GCC/G++ (Unix) ,C/C++ is not any more a problem or hinder to simulate our code instead of a console interface. In this scratch article ,running the source program in an Atmel variants and other brand of MCUs could be made possible using eclipse IDE as a slight editor.We will discuss here the customization of an Eclipse C/C++ environment as a requirements of compiling source code fitted in our AVR32 board. An Eclipse editor needs an installed Atmel GNU tool chain: avrdude,avr32-gcc,avr-gcc and other required libraries to run/compile code in AVR32.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<div style="text-align: justify;">
There are miscellaneous software programmer for AVR32 module:(1) Flexible In-system Programmer version III or <span style="color: blue;">FLIP3 </span>(flip.3.x.xx.tar.gz) bundled with batchISP as tool to program parts containing an embedded Atmel ISP. This software has a version for both Linux and Windows OS See this article for further technical details: (1) <i><span style="color: #38761d;">http://datasheet.octopart.com/ATEVK1101-Atmel-datasheet-166485.pdf</span></i><b><i>.</i></b><cite class="vurls">(2)<span style="color: #274e13;">http://www.atmel.com/Imag /avr32studio_release_notea_2.6.0.pdf</span></cite><span style="color: #274e13;">‎.</span> </div>
<div style="text-align: justify;">
<br /></div>
While in Linux ,(2) we can use <span style="font-family: inherit;"><span style="color: blue;">DFU programmer</span> as a replacement for FLIP3 in windows as well. It is a command line tool for for the flash memory on <span class="highlight">Atmel</span> AVRs:AVR , AVR32 and 8051 based micro controllers which ship with a <span class="highlight">USB</span>
boot loader. Though DFU programmer is a command line tool it is very easy to install
and use.Here is some further infos about DFU: <span style="color: #38761d;"><i>(1) http://linux.die.net/man/1/dfu-programmer (2)http://www.technoburst.net/2013/04/atmel-dfu-programmer-tutorial-for-linux.html</i></span></span><br />
<br />
Hence ,we only need an AVR32 module connected to our PC via USB-Serial interface-that's all our simple development for now.<br />
<br />
Note:<br />
All these utilities are free to download and can be run in Linux.<br />
<br /></div>
The author would like to acknowledge Sir Henry of e-Gizmo store for the samples of AVR32 module.Thank you very much Sir Henry & e-Gizmo staffs pinoy geeks owe alot of priceless stuffs from your company-Mabuhay! Kudos! Aja!<br />
<br /></div>
<b>Objectives: </b><br />
1) To create gcc IDE for AVR32 by using C/C++ Eclipse editor <br />
2) To learn how-to program (compile,flash,fuse,boot-load) in an ATmel AVR32<br />
3) To explore the potential use of AVR32 for variety of embedded applications<br />
<br />
<br />
<b>Requirements:</b><br />
<br />
Hardware:<br />
USB to Serial converter<br />
e-Gizmo AVR32 module (<span style="color: #0b5394;"><i>http://www.e-gizmo.com/KIT/AVR32.html</i></span>)<br />
<br />
Software:<br />
Linux OS : Ubunto /Fedora 1X<br />
<br />
<span style="color: #b45f06;">AVR32 plugin</span> (UC32XX,AVR32 GNU tool chain,batchISP and more)<br />
<i>http://distribute.atmel.no/tools/avr32studio/releases/latest/</i><br />
<br />
<span style="color: #b45f06;"><span style="background-color: white;">AVR32 GNU Tool chain</span></span><i><span style="background-color: white;"> (</span>32/64 bit Linux)</i><br />
<i>http://www.atmel.com/tools/ATMELAVRTOOLCHAINFORLINUX.aspx</i><br />
<span style="color: #e69138;"><span style="color: #b45f06;">JAVA SDK Environment</span> </span>-installable in Linux Shell<br />
<br />
<span style="color: #b45f06;">Eclipse<i> </i></span><br />
<i>http://www.eclipse.org/downloads/packages/release/galileo/r</i><br />
<br />
<span style="color: #b45f06;">FLIP3</span> <br />
<i>http://www.atmel.com/tools/flip.aspx</i><br />
<i>http://www.atmel.com/Images/flip_linux_3-2-1.tgz</i><br />
<br />
<span style="color: #b45f06;">DFU</span><br />
http://nchc.dl.sourceforge.net/project/dfu-programmer/dfu-programmer/0.5.4/dfu-programmer-0.5.4.tar.gz<br />
<br />
<span style="color: #b45f06;">Miscellaneous Documents</span><br />
<i>http://www.atmel.com/devices/at32uc3l0128.aspx?tab=documents</i><br />
<br />
<b>Methodology:</b><br />
1) Install avr-gcc compiler and other libraries<br />
root@localhost# yum install gcc-avr avr-libc avrdude<br />
<br />
2)Installing DFU programmer <br />
root@localhost# yum install dfu-programmer<br />
<br />
3) Install Java SDK<br />
root@localhost# sudo apt-get install openjdk*<br />
<br />
4) Download and install the Eclipse editor<br />
root@localhost# sudo apt-get install eclipse-platform eclipse-jdt eclipse-cdt<br />
<code></code><br />
5) Download and install AVR32 plugin<br />
Click "Window" -> "Install Software" -><br />
<br />
6) Configure AVR32 (AT) setting in the GCC-IDE<br />
<br />
7) Create a simple circuit configuration for the AVR32 module<br />
<br />
8) Compile and run the program<br />
<br />
9) Load the code in the AVR32 board<br />
<br />
10) Test the expected output of the code in the AVR32 circuit <br />
<br />
<br />
<b>Details: </b><br />
<br />
Detail(1) AVR32 GNU tool chain<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjT7K3RNyy9CckJNvh5ApPh_bDPZkP4QG26en6DiSSrCnf_BRvagdP8p5TCvhSOyGRPlMUxERHmXaWxRN7xaP8BYEc9TSSNu0n_EDpc60KeqGFbW0llVCGdX1idb1aI-NV3uwNH7io1sAPE/s1600/toolchain.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjT7K3RNyy9CckJNvh5ApPh_bDPZkP4QG26en6DiSSrCnf_BRvagdP8p5TCvhSOyGRPlMUxERHmXaWxRN7xaP8BYEc9TSSNu0n_EDpc60KeqGFbW0llVCGdX1idb1aI-NV3uwNH7io1sAPE/s400/toolchain.png" height="253" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Detail(2)Launching Eclipse editor<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGMldGHI0jX3En-T8SYVm8A27HZIe14mDR1LCdfDZZlDa6c78IVDvJQON_OQAYQqgDhbRpL9gzvHziI6wO3PS1GLlvdWpotUavkOJZZuMsE8dc5oI2RfS0cMfbZNuU9T_L8bkmKNl5OYO1/s1600/eclipse.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGMldGHI0jX3En-T8SYVm8A27HZIe14mDR1LCdfDZZlDa6c78IVDvJQON_OQAYQqgDhbRpL9gzvHziI6wO3PS1GLlvdWpotUavkOJZZuMsE8dc5oI2RfS0cMfbZNuU9T_L8bkmKNl5OYO1/s400/eclipse.png" height="258" width="400" /></a><br />
<br />
Detail(3) Eclipse Platform<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilLFDkRZ457WeH4y66n4pNcr3IL-RqF_b7DURcdWqky-tQ5D-8Fdmb-z4bMyoc9Qj85n-gKdcEYyeDRz0Dwg4t0SQY3NAJX_Z-2EnqJIBgBof_sXZYG1b9Q0UqD_LYuB3a3qc9_3POKcPW/s1600/installing2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilLFDkRZ457WeH4y66n4pNcr3IL-RqF_b7DURcdWqky-tQ5D-8Fdmb-z4bMyoc9Qj85n-gKdcEYyeDRz0Dwg4t0SQY3NAJX_Z-2EnqJIBgBof_sXZYG1b9Q0UqD_LYuB3a3qc9_3POKcPW/s400/installing2.png" height="300" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
Detail(4)AVR32 Plugin to Eclipse<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBfsPpDNVkBkotCvcX1_HFYn6guUmahLMq4Ee2DlCM9UoUAZnwmAak8J__cdHYR483ODjZoSODVtGeISmHTx9fP63Yx_dkyTek8Q56-jSS1CZYobMNn0zDNGHnTnWRYV9AloFtdLtmh6Q2/s1600/AVR32-Plugin+.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBfsPpDNVkBkotCvcX1_HFYn6guUmahLMq4Ee2DlCM9UoUAZnwmAak8J__cdHYR483ODjZoSODVtGeISmHTx9fP63Yx_dkyTek8Q56-jSS1CZYobMNn0zDNGHnTnWRYV9AloFtdLtmh6Q2/s400/AVR32-Plugin+.png" height="387" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Detail(5)AV32 Utilities and Tool chain<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAjYIzBrThSHG8twMWfzMW-SiEG6rqmrRIIbCQyZGM9Wv2lvrLR3TtNc5jCf0jbTvNHp-M387i8l6VmPFVP9Ahy7lJmqdyx8dMIRP0sHYVTK-liE583XUwQALRLd3kTjVRl6gYxS165UYA/s1600/BatchISP.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAjYIzBrThSHG8twMWfzMW-SiEG6rqmrRIIbCQyZGM9Wv2lvrLR3TtNc5jCf0jbTvNHp-M387i8l6VmPFVP9Ahy7lJmqdyx8dMIRP0sHYVTK-liE583XUwQALRLd3kTjVRl6gYxS165UYA/s400/BatchISP.png" height="387" width="400" /></a><i> </i><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Detail(6) Installing AVR32 plugin (Utilities & Tools)<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPUAh2Di2MpM8ACBbEP0sUMMdg11pDnqvI74XViDLLZYGWlLjkUqSSFGVXB8-8MkRVWQ7NKeSHeqO64nn3kffRinT728EsrNfhfJs_L6VEeoDE90Svm902j1GfuZKe_BPvK1se2NP-oHAl/s1600/Installing.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPUAh2Di2MpM8ACBbEP0sUMMdg11pDnqvI74XViDLLZYGWlLjkUqSSFGVXB8-8MkRVWQ7NKeSHeqO64nn3kffRinT728EsrNfhfJs_L6VEeoDE90Svm902j1GfuZKe_BPvK1se2NP-oHAl/s400/Installing.png" height="172" width="400" /></a><i><br /></i><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Detail(7) Restart to update Eclipse editor<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3tmQ6kCbruUPTlUitKTMvd38wQbhlqmc2GgFPyHYRXkPbFX9PbUVpf71LuGRaGGc2h_AfCk6NlgJGti6UQoLMp7FJ8iXduekBe_zscnslPZXg3gvn-swQ2yetMCZ-nI6lGN-7_A96XzAR/s1600/AVR32-restart.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3tmQ6kCbruUPTlUitKTMvd38wQbhlqmc2GgFPyHYRXkPbFX9PbUVpf71LuGRaGGc2h_AfCk6NlgJGti6UQoLMp7FJ8iXduekBe_zscnslPZXg3gvn-swQ2yetMCZ-nI6lGN-7_A96XzAR/s400/AVR32-restart.png" height="111" width="400" /></a></div>
<i><br /></i>
<i><br /></i>
<i><br /></i>
<i><br /></i>
<i><br /></i>
<br />
<br />
<br />
<br />
Detail(8) AVR32 Software Licenses<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEC0Ik8UzOH4rFALGPdTNLZnrQdPZayTmbmpJcybVfU7-GffkF7F1AtWsLAvzbSIoTIyfJrf6RiB-j5vd4hOsxQZGnABr5-83HkTLkH2tRdf927YYdQd9GMmX5LOyzoBqolBB7BXZC76no/s1600/License.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEC0Ik8UzOH4rFALGPdTNLZnrQdPZayTmbmpJcybVfU7-GffkF7F1AtWsLAvzbSIoTIyfJrf6RiB-j5vd4hOsxQZGnABr5-83HkTLkH2tRdf927YYdQd9GMmX5LOyzoBqolBB7BXZC76no/s400/License.png" height="386" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Detail(9) Installed AVR32 utilities and tool chain<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9MpYxf8b5pqKoA4h9Ck4DuquY7hwZ69eSp2t3Snk5E8hb_fDzCD51Y6st71id4ITsMAJ8iJfzQ0zDIc2_DFXnBUPSZjVnn6IKqI1__EFjHQossNX7cMwmBA2Xdb4bhr-ZvEoDL_u_7WIb/s1600/toolchain.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9MpYxf8b5pqKoA4h9Ck4DuquY7hwZ69eSp2t3Snk5E8hb_fDzCD51Y6st71id4ITsMAJ8iJfzQ0zDIc2_DFXnBUPSZjVnn6IKqI1__EFjHQossNX7cMwmBA2Xdb4bhr-ZvEoDL_u_7WIb/s400/toolchain.png" height="257" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Detail(10) AVR32 Tool chain setting<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYKDCU35aLrDVYPt7Mlz2IwlOPCcYJeQuiS0pdV2vERp24Fm0B-xY6kXhMaybK_poL07ONK1logvFpOKp9WhWN7uTJQAkGlJm4CfIiMsOlFJ53RNx0e7IKzCsUHs66jUdv2J7wGxVKgMZr/s1600/Tool+chain.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYKDCU35aLrDVYPt7Mlz2IwlOPCcYJeQuiS0pdV2vERp24Fm0B-xY6kXhMaybK_poL07ONK1logvFpOKp9WhWN7uTJQAkGlJm4CfIiMsOlFJ53RNx0e7IKzCsUHs66jUdv2J7wGxVKgMZr/s400/Tool+chain.png" height="303" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Detail(11) Selecting a workspace<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUi6y40hwFk3prc1Vc2Kgbu0iilS8PUb_ocLcv1ka81o7_wAmsq2pHYJuEJi-LeYLGjiDUv1kDyJVCs4VO4xqUFJVPxsPZ_F5N5xT8aSIT7ZqbPej10gDGyVSGqu8C0GVoPFjoyjqyN5_8/s1600/Workspace.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUi6y40hwFk3prc1Vc2Kgbu0iilS8PUb_ocLcv1ka81o7_wAmsq2pHYJuEJi-LeYLGjiDUv1kDyJVCs4VO4xqUFJVPxsPZ_F5N5xT8aSIT7ZqbPej10gDGyVSGqu8C0GVoPFjoyjqyN5_8/s400/Workspace.png" height="202" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Detail(12) Device Selection<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdHVrdQWiV6IcVBTLgVs5kTnp3m_IK4VJ0ky-iWRR7rIuj9xOfbo1IIiKRsIHoDqViGIkJ5EhQF_545m8P0wpleiAqzOMPH7L8Z_nG35E8HOHaHVCZE96q9KAc9Y0mu9_tjrbVh-aVGwbe/s1600/Device+Selection.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdHVrdQWiV6IcVBTLgVs5kTnp3m_IK4VJ0ky-iWRR7rIuj9xOfbo1IIiKRsIHoDqViGIkJ5EhQF_545m8P0wpleiAqzOMPH7L8Z_nG35E8HOHaHVCZE96q9KAc9Y0mu9_tjrbVh-aVGwbe/s400/Device+Selection.png" height="286" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Detail(13)AVRdude configuration<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNcudD9vBNiB-YpCizxM6E-qyKQImdIaodLDw2vZqEw1LzXrWPA0UFwkz82ArfyHlFG88VbwCrG5O-3Qwu2IpKwLCktJLRyT8YURnWXQXTKhESuirXupOiJPFu-hLIG9C2GqgveNPJa7cL/s1600/AVRDUDE.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNcudD9vBNiB-YpCizxM6E-qyKQImdIaodLDw2vZqEw1LzXrWPA0UFwkz82ArfyHlFG88VbwCrG5O-3Qwu2IpKwLCktJLRyT8YURnWXQXTKhESuirXupOiJPFu-hLIG9C2GqgveNPJa7cL/s400/AVRDUDE.png" height="260" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Detail(14) Create a C/C++ source file<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzAxMtgtwuLiRojpobOvWx3rmjVA0vzlbEGczshjxRkC1p6WpI1N0c9KVQ_nTpn88MKCt1X78sAQdO3ZX2_DYLjDrT4afNPKCWVSWDCqDJ_wvTGFirKqY0I6bUf6lqbqR6PlkLfP8gqQfk/s1600/testc.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzAxMtgtwuLiRojpobOvWx3rmjVA0vzlbEGczshjxRkC1p6WpI1N0c9KVQ_nTpn88MKCt1X78sAQdO3ZX2_DYLjDrT4afNPKCWVSWDCqDJ_wvTGFirKqY0I6bUf6lqbqR6PlkLfP8gqQfk/s400/testc.png" height="338" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Detail(15) simple GCC-IDE (Non-Trivial)<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCcHXJM8awWdeBaV-ssMR1E1B0xSt3rlnEfXcAJp1XqC-dbyKIpk9xEE8P-zEWEvM7UMaHcDYKzxZOfQm00OminxOanhi_-M-D6cAQQQJnAwrCbpCh0wsXHN91CKZ93NyXZag1mFgTwraI/s1600/GUI.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCcHXJM8awWdeBaV-ssMR1E1B0xSt3rlnEfXcAJp1XqC-dbyKIpk9xEE8P-zEWEvM7UMaHcDYKzxZOfQm00OminxOanhi_-M-D6cAQQQJnAwrCbpCh0wsXHN91CKZ93NyXZag1mFgTwraI/s400/GUI.png" height="290" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Detail(16)AVR32 GCC IDE with sample code...<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-D3GqKyMoj_n0x4Ao6c0cGL43qDrH00ScnYi_yyo_L_81q2jNwO3L8oT4zp_1THrWdWT1YrSLTjKyeEXR2k-incVROrd1vF4z06vC-IH-F8kSgezDCvnJNMezBKCu6LeOcIsh-FzJLEMc/s1600/workspace.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-D3GqKyMoj_n0x4Ao6c0cGL43qDrH00ScnYi_yyo_L_81q2jNwO3L8oT4zp_1THrWdWT1YrSLTjKyeEXR2k-incVROrd1vF4z06vC-IH-F8kSgezDCvnJNMezBKCu6LeOcIsh-FzJLEMc/s400/workspace.png" height="251" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
..to be continued<br />
<br />
<b>Remarks:</b><br />
Software programmer options : FLIP3 or DFU (Linux)<br />
<br />
<br />
<b>Conclusions:</b><br />
Just KISS (..keeping it simple and stupid)<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB6QCH4Hu19XEYZRJMIVcNzkhWQJ3Yw0fHKv5oDD2ahdLF2ryQwwVtuAJz30MuBprAtr4u11_PBxhmn3kvtV_Cyhnm36H_1Jy_te_d-IbSQ6ySqXIZOLboNjSHzoA3sy1JVS0nBqlzKTHq/s1600/FLIP3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a>E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com0tag:blogger.com,1999:blog-8883986078765682368.post-63173442961335888922013-09-15T04:08:00.000-07:002014-03-24T22:32:14.753-07:00Arduino MySQL connector (Arduino On-line/real-time DataBase)<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIp82XGFJu9xW8f1A4NFkJcm18WxPMQI9_yT8UhrozLw2dPtVelF9lv7tS4bGXccSUnCs7REc77jY1OPrhUo1BQGvsDf9pr87vR2c5ZkQK75ghY92AfgG7E_TsfsOS4p2T85PXaXhQD32z/s1600/myPHP.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghmaNE70n-3RB5-ip99ERwcQhHJOykGdPQJJnn81hNlT8ZAvb3tHMbu6fn_csEVAV5zXDhhs3OrDrajyzYKObpvCrJ8vCTiO6EIRUyTXYd81EFIwr8Nsa6xZ8ZNSPa4IMhXJxblqhc59Sp/s1600/mysql.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFBDq3argHD_7hiKXeL0TV8ScKn3wOfbEy2ExSuc4gh5VcJJFFo5GUfBJH3dgsb7UaJl4SE4T2tvo3-qwUlXSjFuXIH5mkucoX0fRN26lbjfwmwhxz2RWDAg5IVq_t0Y5gaGTqH8LsNS56/s1600/mysql.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkW95Pqy6nSjLXbb7k2RK7wF2_8jhGKWZb8iw19-tTJwvGGhne8vYeRxshMIRt2CdKK8uWih3vGKmCRhguaqzWs0ezjLd3GL7TQY9AlH_a7ouVgFhEUxN3kfhAos8Url2V3ge0iziMMn1v/s1600/IMG_9788.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkW95Pqy6nSjLXbb7k2RK7wF2_8jhGKWZb8iw19-tTJwvGGhne8vYeRxshMIRt2CdKK8uWih3vGKmCRhguaqzWs0ezjLd3GL7TQY9AlH_a7ouVgFhEUxN3kfhAos8Url2V3ge0iziMMn1v/s640/IMG_9788.JPG" height="424" width="640" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<b>Introductions:</b><br />
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Sometimes when computing machines are becoming smaller and smaller,we cant deny the fact that its not only the processing capabilities that we must consider , but also the capacity to store data.Since we have discussed awhile ago the speed and efficiency of this small machine/s,let's also tackle ways on how to use them as client or server to save bulk of data.Traditionally , data logging in an embedded system should have a third party connector/s or hook-up interface linked to the computers or servers before micro-controllers are able to store bulked signals or raw data .A good example was MCU gathered signals which are fed to the serial port of a PC(server) then parse via PHP and dumped those data in mysql.Another example is dumping all data at the specified ROM built in to the MCU, but the former was a better recommendation. <br />
<br />
Just recently, I've came up to a data logger system design , comprises of different transducers which are capable of detecting digital and analog signals considered as critical parameters inside the Data Center.To name those signals: light, humidity,temperature,sounds,distance and etc. Our Arduino functions as a controller to gather data , and its embedded program measures the equivalent units to represent the scale of data sense by these transducers.<br />
<br />
In this scratch article, we will introduce a new mysql connector ported by Dr. Chuck on his blog <span style="color: blue;"><i>http://drcharlesbell.blogspot.com/2013/04/introducing-mysql-connectorarduino_6.html </i></span><br />
.We've also used Wiznet Ethernet Shield available at the local store owned by "ThinkBox" <span style="color: blue;"><i>(http://store.mytinkbox.com</i></span>) ,you can order the module on-line by the way. So our contribution will be to utilize, maximize its given functions and procedure just like an ordinary SQL are coded and give an example on programming it.You may try to explore and find out how it simplifies database in an embedded systems.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2B_K3eDAqOq5Dai5NPjTfWgHtAfm0mo4c5NGP-O6hZ1AdJ1lKoiVo64kTGTtSo7hXI0_Eawt3Jo2ODQ9_PqG5fB7WGTUhb48cCaY41sqSqIjaLjnD-bAs-hvAAcAMLt3OrUsqyrBaHf_r/s1600/php.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<br />
<br />
<br /></div>
<b>Requirements:</b><br />
Mysql Connector<br />
Mysql Server on PC<br />
Arduino2560 Mega<br />
Wiznet Ethernet Shield (<span style="color: blue;"><i>http://store.mytinkbox.com </i></span> or <i><span style="color: blue;">http://www.e-gizmo.com/ </span>)</i><br />
Source: Hi-Techno Barrio<span style="color: blue;"><i><b> http://code.google.com/p/hi-techno-barrio/downloads/list</b></i></span><br />
<br />
<b>Objectives:</b> <br />
(1)To enhance the capabilities of microprocessor and macro-processor as clients in a data base system.<br />
<br />
(2) To test new Mysql connector<br />
<br />
<br />
<b>Methodologies:</b><br />
<br />
1) Download Mysql connector<br />
<i> https://launchpad.net/mysql-arduino</i><br />
<br />
2) Unzip the Mysql connector zip files<br />
root@localhost# unzip mysql_connector.zip<br />
<br />
3) Copy the files inside the Arduino library folder<br />
root@localhost# mv mysql_connector MYSQL<br />
root@localhost# cp -r MYSQL /usr/share/arduino/libraries<br />
root@localhost# cp -r sha1 /usr/share/arduino/libraries<br />
<br />
4) Cut and paste the sample code given in the Arduino IDE<br />
root@localhost# arduino dcms.ino<br />
<br />
5) Compile the code with your preferred Arduino2560 <br />
Note: <br />
5.1) Select the proper baud rate (serial sets to 115200 kbs) <br />
5.2) Just point mouse to the arrows and functions will be highlighted,click the arrows for compiling and loading<br />
5.3) Choose the preferred sensors function in the sample program<br />
<br />
6) Design data schema (Mysql)<br />
root@ localhost# mysql -u root -p<br />
<br />
6.1) create mysql database<br />
<span style="color: lime;">mysql></span> create dcmsDB;<br />
<br />
6.2) display mysql database<br />
<span style="color: lime;">mysql> </span> show databases;<br />
<br />
6.3) choose mysql databse<br />
<span style="color: lime;">mysql></span> use dcmsDB;<br />
<br />
6.4) create table in mysql<br />
<span style="color: lime;">mysql></span> CREATE TABLE `dcmsData` (<br />
`sensorid` int(11) NOT NULL AUTO_INCREMENT,<br />
`Humidity` FLOAT DEFAULT NULL,<br />
`Light` INTEGER ,<br />
`Noise` INTEGER DEFAULT NULL,<br />
`Smoke` INTEGER DEFAULT NULL,<br />
`Temperature` FLOAT DEFAULT NULL,<br />
`AC` INTEGER DEFAULT NULL,<br />
`DayTime` DATETIME DEFAULT NULL,<br />
PRIMARY KEY (`sensorid`),<br />
UNIQUE KEY `rowid_UNIQUE` (`sensorid`)<br />
) ENGINE=InnoDB DEFAULT CHARSET=latin1;<br />
<br />
6.5) insert row data mysql table<br />
<span style="color: lime;">mysql></span> INSERT INTO dcmsData (Humidity,Light,Noise,Smoke,Temperature,AC,DayTime) values('100','200','300','400','500','600',NOW());<br />
<br />
6.6) display table structure in mysql<br />
<span style="color: lime;">mysql> </span> describe dcmsData<br />
<br />
6.7) display data<br />
<span style="color: lime;">mysql></span> SELECT * FROM dcmsData;<br />
<br />
<br />
7) Just to give an overview , here are some parts of the program:<br />
<br />
<span style="color: blue;"><b>(6.1) Include files</b></span><br />
#include "NewPing.h"<br />
#include "autonomos.h"<br />
#include "webcontrol.h"<br />
#include "udpsend.h"<br />
#include "DHT.h"<br />
<br />
// include files for mysql<br />
#include "SPI.h"<br />
#include "Ethernet.h"<br />
#include "sha1.h"<br />
#include "mysql.h"<br />
<br />
<br />
<span style="color: blue;"><b>6.2) /* Setup for Ethernet Library */</b></span><br />
/* Setup for Ethernet Library */<br />
byte mac_addr[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };<br />
IPAddress server_addr(192,168,1,2);<br />
IPAddress ip(192,168,1,177);<br />
IPAddress gateway(192,168,1, 1);<br />
IPAddress subnet(255, 255, 255, 0);<br />
char sqlbuf[128];<br />
char sqlDbase[] = " USE dcmsDB";<span style="color: blue;"><br /><b> </b></span><br />
<span style="color: blue;"><b>6.3) /*Setup for MySQL */</b></span><br />
unsigned int mysqlPort=3306;<br />
Connector my_conn; // The Connector/Arduino reference<br />
char user[] = "root";<br />
char password[] = "Igorotzki";<br />
boolean sqlconnect= false;<br />
<br />
<span style="color: blue;"><b>(6.4) Mysql procedures</b></span><br />
void mysqlBegin()<br />
{<br />
<br />
delay(350);<br />
Serial.println("connecting MySQL Server..");<br />
<br />
if (my_conn.mysql_connect(server_addr, mysqlPort, user, password))<br />
{<br />
sqlconnect=true;<br />
Serial.println("Query Success!");<br />
delay(150);<br />
my_conn.cmd_query(sqlDbase); <br />
}<br />
else<br />
{<br />
Serial.println("Connection failed.");<br />
}<br />
<br />
}<br />
<br />
// sending data to mysql<br />
void mysqldata()<br />
{<br />
// uncomment to use the given functions<br />
// tmp = temperature();<br />
// ht = humidity();<br />
// smk = smoke();<br />
// ns = noise();<br />
// lt = light();<br />
// ac = ACData();<br />
<br />
if (sqlconnect==true)<br />
{<br />
delay(150);<br />
//"INSERT INTO dcmsData (Humidity,Light,Noise,Smoke,Temperature,AC,DayTime) values('100','200','300','400','500','600',NOW()) ";<br />
sprintf(sqlbuf, "INSERT INTO dcmsData (Humidity,Light,Noise,Smoke,Temperature,AC,DayTime) values ('%f','%d','%d','%d','%d','%f',NOW())",ht,lt,ns,smk,tmp,ac) ; <br />
my_conn.cmd_query(sqlbuf);<br />
Serial.println("Data stored!");<br />
}<br />
<br />
} // end mysql...!<br />
<br />
<br />
<span style="color: blue;"><b>6.5)</b></span><br />
// main program <br />
Void loop()<br />
{<br />
<br />
mysqldata();<br />
range(1);<br />
robotCommand("independent");<br />
cameraPosition();<br />
}<br />
<br />
<span style="color: blue;"><b>6.6) </b></span><br />
<i><b>If you are interested with the complete code of this techno-blog, please include your e-mail account in the comment portion!</b></i><br />
<br />
<br />
Details(1) Data logging (DHT11,LM35,LDR,Sound,URF)<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCrEpnGgU2NBKOg9_2IUac2hCs05Cn9BdBnqHLni8DAI7708cme7pHlptrwMl4gdpOhxLVYiEUxkDK0RMTpNjbhPzCsyMXVMTIytF61jhXl9q9yKjX-V1TaOUUQNezV05Hcqyza-d6Lk8-/s1600/IMG_9776.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCrEpnGgU2NBKOg9_2IUac2hCs05Cn9BdBnqHLni8DAI7708cme7pHlptrwMl4gdpOhxLVYiEUxkDK0RMTpNjbhPzCsyMXVMTIytF61jhXl9q9yKjX-V1TaOUUQNezV05Hcqyza-d6Lk8-/s400/IMG_9776.JPG" height="266" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(2) Mysql Connector download site<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitiX5PZRW-5fnwo7_DIka8nRXBuzn4Z1uMFbHfeGk5cTtvijM2pWJ4cwOJ6CcFk-OqW3bdCmiE3TOwNHuuGKjs_-2Og1v199MmaZuau1t9QYlJLI4lR76iQAHkVg_312erL7awJ0kO1LgA/s1600/download.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitiX5PZRW-5fnwo7_DIka8nRXBuzn4Z1uMFbHfeGk5cTtvijM2pWJ4cwOJ6CcFk-OqW3bdCmiE3TOwNHuuGKjs_-2Og1v199MmaZuau1t9QYlJLI4lR76iQAHkVg_312erL7awJ0kO1LgA/s400/download.png" height="252" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(3) Mysql connector and its compilation<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjC8I6c-pCc6mxohnHff4IptjxwM4d5YfERFmwGB8Hd1K_NY6kpDBWI_5McqhKk_t38rPORzEPOu1_tNtd0m_9XlOidZ9fT8f2bCn7f0VcwWM_5navhYtQX-rO4zjb1IfEa9TAr-sMBhTSg/s1600/Coding.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjC8I6c-pCc6mxohnHff4IptjxwM4d5YfERFmwGB8Hd1K_NY6kpDBWI_5McqhKk_t38rPORzEPOu1_tNtd0m_9XlOidZ9fT8f2bCn7f0VcwWM_5navhYtQX-rO4zjb1IfEa9TAr-sMBhTSg/s400/Coding.png" height="178" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(4) Unzip the mysql connector files<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLkIKdni-M6JCj8ponLuS244ehIZq1HkXn5auaidL-hbZZ8Rb5VySCjEfM3TGmNNilxdsPA2gbMTkrFBNAmHuSZDTLzkDZdyV76pNCm34AM1oC9r3LeT5r1h5kjIe9I5j5U7Y-X_z8lvhE/s1600/Folder.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLkIKdni-M6JCj8ponLuS244ehIZq1HkXn5auaidL-hbZZ8Rb5VySCjEfM3TGmNNilxdsPA2gbMTkrFBNAmHuSZDTLzkDZdyV76pNCm34AM1oC9r3LeT5r1h5kjIe9I5j5U7Y-X_z8lvhE/s400/Folder.png" height="288" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(5) Successful compilation of Mysql connector using Ubuntu<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiak-Nz2M6rUgmMZYi7U4FfoGTfb5uUq0mdsACnottw_7kuylXpv_mLh5R3PzbvVFNKqMJPs9oxGNZTITKaDHIF0-L2TkLg1eDeMLK4Z5c9_KXtyTMnON74ALRIc0c9Zu1w5o66MVrRLany/s1600/Serial+Mysql.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiak-Nz2M6rUgmMZYi7U4FfoGTfb5uUq0mdsACnottw_7kuylXpv_mLh5R3PzbvVFNKqMJPs9oxGNZTITKaDHIF0-L2TkLg1eDeMLK4Z5c9_KXtyTMnON74ALRIc0c9Zu1w5o66MVrRLany/s400/Serial+Mysql.png" height="321" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(6) Mysql shema ->database ->tables<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghmaNE70n-3RB5-ip99ERwcQhHJOykGdPQJJnn81hNlT8ZAvb3tHMbu6fn_csEVAV5zXDhhs3OrDrajyzYKObpvCrJ8vCTiO6EIRUyTXYd81EFIwr8Nsa6xZ8ZNSPa4IMhXJxblqhc59Sp/s1600/mysql.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghmaNE70n-3RB5-ip99ERwcQhHJOykGdPQJJnn81hNlT8ZAvb3tHMbu6fn_csEVAV5zXDhhs3OrDrajyzYKObpvCrJ8vCTiO6EIRUyTXYd81EFIwr8Nsa6xZ8ZNSPa4IMhXJxblqhc59Sp/s400/mysql.png" height="220" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(7) Php code<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIp82XGFJu9xW8f1A4NFkJcm18WxPMQI9_yT8UhrozLw2dPtVelF9lv7tS4bGXccSUnCs7REc77jY1OPrhUo1BQGvsDf9pr87vR2c5ZkQK75ghY92AfgG7E_TsfsOS4p2T85PXaXhQD32z/s1600/myPHP.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIp82XGFJu9xW8f1A4NFkJcm18WxPMQI9_yT8UhrozLw2dPtVelF9lv7tS4bGXccSUnCs7REc77jY1OPrhUo1BQGvsDf9pr87vR2c5ZkQK75ghY92AfgG7E_TsfsOS4p2T85PXaXhQD32z/s400/myPHP.png" height="316" width="400" /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2B_K3eDAqOq5Dai5NPjTfWgHtAfm0mo4c5NGP-O6hZ1AdJ1lKoiVo64kTGTtSo7hXI0_Eawt3Jo2ODQ9_PqG5fB7WGTUhb48cCaY41sqSqIjaLjnD-bAs-hvAAcAMLt3OrUsqyrBaHf_r/s1600/php.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(8): Web page Display (PHP)<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiym7o3vRYu0bm2KNeZC-V0Ae-wlPuaiZ7tH1ehLTQJuNdSjFqS4UfbKwK9qryZUlgT3wL0JvYPbOiTbvtzT8dtvbeFXenlNcRbgh9Z2uNCjOqzwsfX9r4Y4m9UBqwt6fa9vRoV60U4ozc0/s1600/php.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiym7o3vRYu0bm2KNeZC-V0Ae-wlPuaiZ7tH1ehLTQJuNdSjFqS4UfbKwK9qryZUlgT3wL0JvYPbOiTbvtzT8dtvbeFXenlNcRbgh9Z2uNCjOqzwsfX9r4Y4m9UBqwt6fa9vRoV60U4ozc0/s400/php.png" height="253" width="400" /></a><b><br /></b><br />
<br />
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<br />
<br />
<br />
<b>Summary:</b><br />
<br />
Trouble(1)<span style="color: red;">Serial.print function ("Error 255=." and then "Connection failed")</span><br />
<br />
Shooting:<br />
<span style="color: lime;">GRANT ALL ON *.* TO 'root'@'%' IDENTIFIED BY 'your_password';</span><br />
<br />
<br />
Trouble(2) <span style="color: red;">Using database</span><br />
<br />
Shooting: <i>Please add the following procedure</i><br />
<span style="color: lime;">my_conn.cmd_query("USE dcmsDB); </span><br />
<br />
Trouble(3)<br />
<span style="color: red;"><i>in sha1.h virtual void write(uint8_t);<br /> error: conflicting return type specified for 'virtual void Sha1Class::write(uint8_t)'<br />do you know how to fix it?</i></span><br />
<br />
Shooting:<br />
<span style="color: lime;"><span id="bc_0_4b+seedEluD" kind="d">Apply the diff included with the source code.</span></span><br />
<br />
Trouble(4) <span style="color: red;"> Declaring floating point in mysql query</span><br />
<br />
<span id="bc_0_105b+seedL9vD" kind="d">Shooting: </span><br />
<span style="color: lime;"><span id="bc_0_105b+seedL9vD" kind="d">float t = do_something();<br />char buf[128];<br />sprintf(buf, "INSERT INTO test.motion VALUES (NULL, '%f')", t);<br />my_conn.cmd_query(buf);</span></span><br />
<br />
<b>Conclusions:</b><br />
<br />
So we have embedded mysql in MCU<br />
<br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFBDq3argHD_7hiKXeL0TV8ScKn3wOfbEy2ExSuc4gh5VcJJFFo5GUfBJH3dgsb7UaJl4SE4T2tvo3-qwUlXSjFuXIH5mkucoX0fRN26lbjfwmwhxz2RWDAg5IVq_t0Y5gaGTqH8LsNS56/s1600/mysql.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><br /></a>E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com79tag:blogger.com,1999:blog-8883986078765682368.post-5170796584687944862013-08-25T23:22:00.003-07:002014-01-26T22:16:57.540-08:00Writing Image and booting Linux from MK808/RK3066<div class="separator" style="clear: both; text-align: center;">
</div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh88gLIjU1uem16x6s64tw_ZyYbeI17oemknRMbIS8f_EGl18kGq_2hqyDuLNeCqgA1xRqB7lvDnSEfZ2AFuM3DbpvVGoLDXmN0X89WzYoM9MKXKtnI5YrujHEN8YtjtIG5eb0ZQxEK5kCo/s1600/MK808.jpeg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh88gLIjU1uem16x6s64tw_ZyYbeI17oemknRMbIS8f_EGl18kGq_2hqyDuLNeCqgA1xRqB7lvDnSEfZ2AFuM3DbpvVGoLDXmN0X89WzYoM9MKXKtnI5YrujHEN8YtjtIG5eb0ZQxEK5kCo/s640/MK808.jpeg" height="424" width="640" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<b>Introductions:</b><br />
<br />
<div style="text-align: justify;">
Now you would ask me;What guts I am
trying to prove on tracking the development of these mini-PC
sticks?Well, nowadays ,computers are becoming smaller and smaller and that
proportionate to their cost-cheaper.And I know you would believe me, single board PC
did not compromise computing speed ,functionality ,efficiency yet with
lesser consumption of electricity (5V/2A) ; we called this <i>"nano-technology" on</i>
computers.Imagine a supercomputing machine is just smaller than the
palm size of your hand.Simple,with its cheap price, I can purchase
numbers of minis-PC and afterwards create a prowess of varied
R&D applications.A variety of testing instruments:embedded
Oscilloscope,Analyzer, high speed cameras,and all the likes.Because it's a
light-weight machines ,we can board as many PCs as we can, to
make our machine or robots think, process more and intelligent
enough to respond in our specific purpose .An out-of-the-box super computing machine,
clustered mini-sticks is just an appliance that can be stored atop your
desk.The rest are the R&D of a lifetime-not yet to be told-but
they're arrayed in the mind .This minute gadget is a heavenly concept
making things happen in reality( :) ).</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
I have tried different single board PC from STMF32 ,ARM Cortex 3, Beagle board,Mini2440 and mini6440 and had experienced the difficulties in loading or flashing firmwares into its embedded system.Though its quite complex , I was lucky that there were several documents available as an included resources,besides they have the technical support on-line.Sometimes you need to decode Chinese language to know the hidden specifications-at least that could be a right path of porting different codes and libraries.<br />
<br />
RK3066 is dual Core Cortex-A9 processor running at up to 1.6 GHz
produced on 28 nm process, with quad core Mali 400 @ 533 Mhz.These features are enough to settle in the higher application system-but when it comes to controlling,brute forcing hardware applications -we have a different story.<br />
<br />
Actually , I did n't have to flash android OS into Picunto or
Ubunto,but it so sad that Android OS is not meant for embedded and
servering applications.Another is that <i>Rockchip</i> is still in the stone age, they require NDA(non disclosure agreement) and $5000 to
send you SDK for building Android images which even have no sources
inside but binary blobs.So I have no choice but to change its OS into an
appropriate one. Yet this is not an easy task for there is no instant
or direct Linux installations in the RK3066 chips other than
android itself.</div>
<br />
<div style="text-align: justify;">
All Rockchip kernel and Linux support so far is done by group of
hackers who reverse engineer their code for fun and they have already
significant success.The community would like to thanks hacker/crackers who had patiently ported and given source code for free: AndrewDB,Olegk0,JustineTime4Tea,mosfet,E^3 and others.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
So folks ,please read and join me as this scratch article go along the saga and odyssey of porting ,debugging and unlocking the trade secrets of this nano-made gadgets and bring the breakthrough into the open-source community. </div>
<br />
<br />
<b>Requirements:</b><br />
<br />
<div style="text-align: justify;">
Software: </div>
<div style="text-align: justify;">
MK808 kernel image (recovery.img)</div>
<div style="color: blue; text-align: justify;">
<i>https://github.com/olegk0/rk3066-kernel</i></div>
<div style="text-align: justify;">
<br />
Rooted Image files</div>
<div style="text-align: justify;">
<span style="color: blue;"><i> http://cdn03.arctablet.com/mirrors/picuntu_home-io/homeio_rc1.tar.gz</i></span><br />
<span style="color: blue;"><i><span style="color: black;">Olegk0 Google Drive Folder </span></i></span><br />
<span style="color: blue;"><i><span style="font-size: x-small;">https://drive.google.com/folderview?id=0B6QRwjacGTzCU3RWZ1M2d1FkcTg&usp=drive_web</span></i></span></div>
<div style="text-align: justify;">
<br /></div>
Flash Tool in Linux (rkflashtool)<br />
<div style="text-align: justify;">
<i><span style="color: blue;">https://github.com/justgr/arnova-tools</span></i></div>
<br />
Hardware:<br />
Paper clip<br />
MK808 mini-PC stick<br />
micro-SD adapter<br />
micro-SD card<br />
<br />
<b>Objectives:</b><br />
To write and flash RK3066/MK808 image by using Linux alone(no windows!) <br />
To replace default android OS by Picunto/Ubunto for future system development<br />
To maximize the applications of mini-PC MK808 as dual core running in Linux<br />
<br />
<b>Methodology:</b><br />
<br />
Download the latest release versions of MK808/RK3066 Linux image(cut & paste in your browser)<br />
<div style="text-align: justify;">
<span style="color: blue;"><i>https://doc-0c-b8-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/5c55spo7th4lg7cfnlu8e07a5edfmro1/1384315200000/09152317978381813842/*/0B6QRwjacGTzCNG45bGZWRHlycUE?h=16653014193614665626&e=download</i></span><br />
<br /></div>
Find the necessary tools for flashing firmware image in the SD card<br />
<div style="text-align: justify;">
root@locahost# wget <i><span style="color: blue;"> </span></i></div>
<span style="color: blue;"><i>https://github.com/justgr/arnova-tools/blob/master/rkflashtool/rkflashtool.c</i></span><br />
<i><br /></i>
<span style="color: blue;"><i>Install the required USB software libraries in Linux OS</i></span><br />
root@localhost# sudo apt-get install libssl-dev libcrypto++-dev<br />
<br />
Press down the recovery button (using a paper clip)<br />
Power up the RK3066 device from only the OTG port using a standard usb cable<br />
<br />
Note:<br />
(special OTG cable required or shorting of the sense pins)<br />
Please plugged the OTG-USB cable into your PC (running linux.)<br />
<i><br /></i>
<i>After 5 seconds release the button. observed that no led will turn on at this point.</i><br />
<i>Run dmesg and you should see something like<span style="color: blue;"> detail 1</span>:</i><br />
root@localhost# dmesg<br />
<br />
Run lsusb and make note of the device id<br />
root@localhost# lsusb <br />
My MK808 vendor ID is 2207:300a<br />
<br />
<span style="color: blue;"><i>Let's compile the rkflashtool.c</i></span><br />
root@localhost# tar -zxvf rkflashtool.tar.gzroot@localhost# cd rkflashtool/<br />
root@localhost# vim rkflashtool.c<br />
<br />
<i>...cut and paste the code phrase highlighted in detail (3) then run the program</i><br />
root@localhost#gcc -o rkflashtool rkflashtool.c -lusb-1.0 -O2 -W -Wall -s.<br />
<br />
<i>We're now ready to read the flash(a moment of truth :) ).</i><br />
<i>As a first step you may dumped the entire 8GB NAND flash as a backup like so</i><br />
<i>Note:</i><br />
<i>It will take some time to backup the whole NAND.</i><br />
root@locahost rkflashtool r 0x00000000 0x01000000 > myflashbackup.bin<br />
<br />
<i>To quickly get an idea of where everything is in the flash you can run CLI command below . It will reveal the parameters which include the offsets for all images in NAND including boot, system and user.</i><br />
root@localhost# hexdump -C myflashbackup.bin | more<br />
<br />
As an example to grab the kernel I did the following:<br />
root@localhost# rkflashtool r 0x00004000 0x00004000 > mk808kernel.img<br />
<br />
<span style="color: blue;"><i>To upload a new kernel do the following:</i></span><br />
root@localhost# rkflashtool e 0x00004000 0x00004000<br />
root@localhost# rkflashtool w 0x00004000 0x00004000 < recovery.img<br />
<br />
<b>Tips!:</b><br />
<span style="color: lime;"><i>After a successful loading the kernel image <span style="color: red;">(recovery.img)</span> you can now reboot the stick and check picture <span style="color: blue;">details (6 & 7)-</span> you're on the right track brother.So you may proceed now to partitioning your SD card and inserting Debian file-systems into it:)</i></span><br />
<i><span style="color: blue;"><br /></span></i>
<i><span style="color: blue;">Partitioning your SD Card</span></i><br />
root@localhost# yum install gparted*<br />
root@localhost# gparted<br />
<br />
1) Create an "ext4" partition<br />
2) resize the partition atleast 5GB or larger <br />
3) label it with "linuxroot"<br />
4) Apply the changes<br />
<span style="color: blue;"><i><br /></i></span>
<span style="color: blue;"><i>After the kernel image was flashed, </i></span>it's time to copy your linuxroot(File System), be sure that you are in a root mode <br />
root@localhost@ tar-zxvfp home_io.tar.gz /run/media/robook/linuxroot<br />
or<br />
root@localhost# tar -zxvf home_io.tar.gz<br />
root@localhost# cd picunto_linuxroot_rc<br />
root@localhost# cp -R * /run/media/robook/linuxroot<br />
<br />
Note! Please wait until all files are copied to avoid errors in the picunto boot up<br />
<br />
<br />
<b>Details:</b><br />
<br />
1) Please run the lsusb command<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3FpAZF5bIjxql_18yOZ0aQQ3otMW0gLs2v1wBcCsyEkbH4-60vfEbBQ2oqxAGMFFkzUVBHw362v_SjZhq8z9U7aaKjX-jr4FVPamz2MaC-TEb8E0XAOYhVDVLtSxHnqhE6NtQMNUhHEm9/s1600/lsusb.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3FpAZF5bIjxql_18yOZ0aQQ3otMW0gLs2v1wBcCsyEkbH4-60vfEbBQ2oqxAGMFFkzUVBHw362v_SjZhq8z9U7aaKjX-jr4FVPamz2MaC-TEb8E0XAOYhVDVLtSxHnqhE6NtQMNUhHEm9/s400/lsusb.png" height="167" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
2)Next run the dmesg command to find vendors ID<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGNZvPR9u7gVeKG8AR04u0NWHeilrMTklXeVdFJPGiijB-Fw1FN78km-aXmnrwHw9k2LU4vhHX8Syu1O_Mx7ouMdzhwfFpjeazgStkxl-aX64Lctfd5q33AujNJkAbUEjcFC3OesuuVZUs/s1600/demsgMK80.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGNZvPR9u7gVeKG8AR04u0NWHeilrMTklXeVdFJPGiijB-Fw1FN78km-aXmnrwHw9k2LU4vhHX8Syu1O_Mx7ouMdzhwfFpjeazgStkxl-aX64Lctfd5q33AujNJkAbUEjcFC3OesuuVZUs/s400/demsgMK80.png" height="252" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
(3)After finding the vendors ID ,copy the highlighted code in the rkflashtool.c<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4MsLIO6E5EqPRKinWGvSpAkqURjTpaLrnGEAkN8vl-WZLESoSg2OY9ojj8ix11O1IVQhL4lvqmJJHgJDkHTP8g0Owr9B5gH807_ObPHwnhXTG0P_39i1sScpdDGN7H-x_ZqkrgVIVzXtv/s1600/chnagerkflash.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4MsLIO6E5EqPRKinWGvSpAkqURjTpaLrnGEAkN8vl-WZLESoSg2OY9ojj8ix11O1IVQhL4lvqmJJHgJDkHTP8g0Owr9B5gH807_ObPHwnhXTG0P_39i1sScpdDGN7H-x_ZqkrgVIVzXtv/s400/chnagerkflash.png" height="306" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
(4)Testing rkflashtool-> dumping NAND<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhICPhHmExTMLkTf3PAsNHTcnr3qoU11U3GpfC2lF65Ym3R_9ucrr6wvNAWsCPJnKVqoXraFvMY8ZIp3uRpotz7VZ1Xo4wnbWCa0fAxI7KWvvKLrO-NXeXp6VeFa2UHHHea7DxNtZrnwIum/s1600/kernel1.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhICPhHmExTMLkTf3PAsNHTcnr3qoU11U3GpfC2lF65Ym3R_9ucrr6wvNAWsCPJnKVqoXraFvMY8ZIp3uRpotz7VZ1Xo4wnbWCa0fAxI7KWvvKLrO-NXeXp6VeFa2UHHHea7DxNtZrnwIum/s400/kernel1.png" height="180" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
(5)Flashing the new kernel image "recover.img"<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjR0L9C3jvRHmWZLEum9POUPGWiBhc9xs_dTTVBi4RM8prtFEu4BAte9VUgocSV5LnALTD9NrIJG7tmNBAnadC278GYQcSpwbiac_Q94LDhF0-eo1kUsU7uuL7ckB2ZO20ezBglsWaeC3gL/s1600/final+Flash.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjR0L9C3jvRHmWZLEum9POUPGWiBhc9xs_dTTVBi4RM8prtFEu4BAte9VUgocSV5LnALTD9NrIJG7tmNBAnadC278GYQcSpwbiac_Q94LDhF0-eo1kUsU7uuL7ckB2ZO20ezBglsWaeC3gL/s400/final+Flash.png" height="320" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
(6)Booting the MK808 in Linux -pre install "BusyBox OS"<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSOc86afx0U0wMP9pgdoPG-4bmrYZLSUuNVIMTAzzm284TODSB4Zv363genkifdmnysA6qlmG_sCouxfn67nwahCsrRN8aPK7y7w_TmgLWA9lBD-329a653pcdRipt-xQIr0tN6PHfpGLb/s1600/IMG_7136.JPG" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSOc86afx0U0wMP9pgdoPG-4bmrYZLSUuNVIMTAzzm284TODSB4Zv363genkifdmnysA6qlmG_sCouxfn67nwahCsrRN8aPK7y7w_TmgLWA9lBD-329a653pcdRipt-xQIr0tN6PHfpGLb/s400/IMG_7136.JPG" height="266" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
(7)System and files<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4brKiVlOoij7ofy2IXGODSxYmqOwSW0T7fLKXgY8q2I_nJRGFBiaizNCt0l-PN1BC2i6JUOzWzr41u6EZ2YBSoMq3F1P5X2PIO73r7tJyUMlJl6bkHVuG4maVn6otC2Y4NUq0nKmQ1N75/s1600/IMG_7143.JPG" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4brKiVlOoij7ofy2IXGODSxYmqOwSW0T7fLKXgY8q2I_nJRGFBiaizNCt0l-PN1BC2i6JUOzWzr41u6EZ2YBSoMq3F1P5X2PIO73r7tJyUMlJl6bkHVuG4maVn6otC2Y4NUq0nKmQ1N75/s400/IMG_7143.JPG" height="266" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
(8) Partitioning the SD card ("ext4"-File System- 5++ GB<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhgacQ6v8e7kRFc12Yyf_1whHnpxwwLay8NJVKCzHjfPH4PpqA-mPsTR2z6t1fOqalObl6tQkIqLs9VQz6nF_X3MjfGYtynpPmJWjrHEZTVkwwcDDHaMhnFk-V1vRw4lzA3_20NHCPpeoj/s1600/gparted.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhgacQ6v8e7kRFc12Yyf_1whHnpxwwLay8NJVKCzHjfPH4PpqA-mPsTR2z6t1fOqalObl6tQkIqLs9VQz6nF_X3MjfGYtynpPmJWjrHEZTVkwwcDDHaMhnFk-V1vRw4lzA3_20NHCPpeoj/s400/gparted.png" height="197" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
(9) MK808 device using HDMI VGA adapter<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyeaYoX4OI7TlaMNdt5BLTkVQ1-x2hPHn3XSmCQ1jE1-yuP111sBOBCEDqdw2nDlpsSkRDXOiZ381HnVaH9V5r3Pmb34b55rfFwSq7-Qt_QzEgyJHSOipq_xVYLxbkGlvD8cc1p-Hw1F8e/s1600/IMG_7140.JPG" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyeaYoX4OI7TlaMNdt5BLTkVQ1-x2hPHn3XSmCQ1jE1-yuP111sBOBCEDqdw2nDlpsSkRDXOiZ381HnVaH9V5r3Pmb34b55rfFwSq7-Qt_QzEgyJHSOipq_xVYLxbkGlvD8cc1p-Hw1F8e/s400/IMG_7140.JPG" height="266" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<b><br /></b>
<b></b><br />
<b><br /></b>
10) Picunto2.2 Login<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS3eUsto1HV-WZ-t_Es7f0gUw7Vhxurwca0WmHLTW_oJhyknsRNoVf2Srzfkw5TZfWm_62nW-tqp61Qx6dC5hsiDYjLXpcUbQ2vq8i45pYJyjCvIyN4BDoj1kw2gxsCJKbmRBTHhh6GPCN/s1600/IMG_7159.JPG" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS3eUsto1HV-WZ-t_Es7f0gUw7Vhxurwca0WmHLTW_oJhyknsRNoVf2Srzfkw5TZfWm_62nW-tqp61Qx6dC5hsiDYjLXpcUbQ2vq8i45pYJyjCvIyN4BDoj1kw2gxsCJKbmRBTHhh6GPCN/s400/IMG_7159.JPG" height="266" width="400" /></a><br />
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b></b><br />
<b></b><br />
<b>11)</b>Picunto 2.2 Desktop (xfce)<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg57JIEplBVHD5ysCDmtiTmwILcHIiE0FHWT_2IL65bcfwgfcoaCyJOOFih0gYjJLWi_dEf8Xx9RYac9OUIabU5EQhqyyqSsCB4lti5cB7DXm5xxC5syikwVcQl_xsb67NrajmzqTRUUfR6/s1600/Screenshot+-+12311969+-+04:07:46+PM.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg57JIEplBVHD5ysCDmtiTmwILcHIiE0FHWT_2IL65bcfwgfcoaCyJOOFih0gYjJLWi_dEf8Xx9RYac9OUIabU5EQhqyyqSsCB4lti5cB7DXm5xxC5syikwVcQl_xsb67NrajmzqTRUUfR6/s400/Screenshot+-+12311969+-+04:07:46+PM.png" height="225" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
12) Checking OS libraries and apps<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwh6Qq1SJ_HyUkgipKcMw16btgHKnSDfF3XNSFc_DRDKPKdnVm3o581WwOw68ogPwBPF7TEiuJTNKDo_eKjfzjfE5yMUXGhTElalGA8nAnW46_dbRqbSsuV56KchkP3EiDy0oO7eAOc8r5/s1600/Screenshot+from+2013-08-29+13:07:37.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwh6Qq1SJ_HyUkgipKcMw16btgHKnSDfF3XNSFc_DRDKPKdnVm3o581WwOw68ogPwBPF7TEiuJTNKDo_eKjfzjfE5yMUXGhTElalGA8nAnW46_dbRqbSsuV56KchkP3EiDy0oO7eAOc8r5/s400/Screenshot+from+2013-08-29+13:07:37.png" height="232" width="400" /></a><br />
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b> </b><br />
<br />
<br />
<b>Remarks:</b><br />
Accomplished the easy task (?) of booting MK808 in Linux<br />
<span style="color: #cc0000;"><br /></span>
<span style="color: #cc0000;">Trouble: BusyBox not booting</span><br />
<br />
Shooting: Please redump the micro-SD card using the rkflashtool<br />
<span style="color: #cc0000;"><br /></span>
<span style="color: #cc0000;">Trouble: Need complete files</span><br />
<br />
Shooting: Please get the latest kernel image and rooted image linux files(application etc)<br />
<span style="color: #cc0000;"><br /></span>
<span style="color: #cc0000;">Trouble: "Mountall Event Fail</span><br />
<br />
Shooting: Try recopying the linuxroot by using "cp -a * or tar -zxvpf" to transfer the compress files into the SD card "ext4" linuxroot directory.<br />
1) Incomplete/unfinished copy<br />
2) Fail with root permission and authorizations transfer of files<br />
<br />
<b>Conclusions: </b><br />
I have a mini-PC MK808 (dual core) running in Linux(how about that bro?)<br />
<br />
<br />
<br />
<br />E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com24tag:blogger.com,1999:blog-8883986078765682368.post-17589770210750107122013-08-13T19:59:00.003-07:002013-08-20T07:12:58.515-07:00USBasp + Arduino(Mega)2560 bootloading in Linux Arduino IDE (ACEduino2560)<br />
<div style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;">
<a href="http://www.blogger.com/blogger.g?blogID=8883986078765682368" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><a href="http://www.blogger.com/blogger.g?blogID=8883986078765682368" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><a href="http://www.blogger.com/blogger.g?blogID=8883986078765682368" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><a href="http://www.blogger.com/blogger.g?blogID=8883986078765682368" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><img border="0" height="305" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGjHqObAEduH3dOHO1sbyiGfRWfE2hM2iDRmDDZOf9p6CdtLWj8ES6sKPMHchwHC0HzFPrB48nbDXcgxQuEIhyphenhyphen7e_tC9iAWMwjxuk886t0klJ1DfYMKDleEhvdJuABf6tEkcnF442rpQqE/s640/Connections.jpeg" width="640" /></div>
<br />
<br />
<br />
<br />
<div style="text-align: justify;">
<b>Introductions:</b> </div>
<div style="text-align: justify;">
<a href="http://www.blogger.com/blogger.g?blogID=8883986078765682368" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><a href="http://www.blogger.com/blogger.g?blogID=8883986078765682368" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><a href="http://www.blogger.com/blogger.g?blogID=8883986078765682368" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><a href="http://www.blogger.com/blogger.g?blogID=8883986078765682368" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><br /></div>
<div style="text-align: justify;">
<div style="text-align: justify;">
Just recently,we've been trough the use of an open-source applications and patronizing its community development ; surprisingly enthusiasts all over the globe are very much overwhelmed in participating the continuous evolutions of an open-source technology.And we are not far from the said expectations , our electronic stores are now tapping-up the distributions of these materials to the cheapest cost that local geeks and enthusiasts are able to afford of.Gone are those days when we are under the verdict of proprietary vendors such as Zilog,PIC,Renessas and other microchip distributors. I want to mention the following e-stores in the city:
Alexan ,e-Gizmo and other on-line stores (tipidPC, sulit.com ,ayos dito) are vendors where we can buy the series of
MCUs especially Arduino with reasonable price.</div>
<br />
Well, our concerns are embedded kits ;yes, the Arduino things and other assorted gadgets ,this rebranded MCU is having the domination in the global e-store.We have noticed that Arduino sheilds' package is the included Atmel microchips , and became an open hardware and software that completely sets the requirement of starting and advancing the learning curve of an embedded system design.This is the main reason that enticed our local e-hobbyists to avail the Arduino MCUs which had given all their resources completely open and free for modifications i,e: DIY,documents,source code and innovations. Perhaps Arduino unravel the "Mt. everest" of complex embedded system into the level of laymen's know-how. E-hobbyists are introduced to their limitless creativity and ingenuity-we could be one of them.<br />
<br />
So, this techno blog is all about giving you the idea on how to work on Arduinos using pure Linux for its compiler and IDE.And the purpose is to reload and upgrade default firmware to its new release versions that will be published in the Arduino web site(<span style="color: #0b5394;"><i><b>http://arduino.cc/en/Main/Software).</b></i></span> This time,I will give you the how-tos of firmware upgrading or bootloading the ACEduino Mega 2560 with USBasp programmer which can be purchased in Alexan and e-Gizmo respectively.So folks please have a try.. :)<br />
<br /></div>
<b>Requirements:</b><br />
avrdude<br />
arduino IDE version 1.5X<br />
USBasp <span style="color: blue;"><i>http://www.e-gizmo.com/KIT/usbasp.html</i></span><br />
Arduino Mega 2560 <span style="color: blue;"><i> http://www.alexan.com.ph/index.php/training-modules/227-aceduino-mega-2560</i></span><br />
<br />
<b>Objectives:</b><br />
To solve USBasp programmer usb setting in Linux<br />
To use USBasp programmer in Arduino IDE<br />
<br />
<b>Methodology:</b><br />
<br />
I) Installations<br />
root@locahost# yum install arduino*<br />
root@localhost# yum install gcc-*<br />
root@localhost# yum install avrdude*<br />
<br />
2) Testing avrdude<br />
root@localhost# lsusb<br />
root@localhost# avrdude<br />
<br />
3) Bootloading using avrdude<br />
root@localhost# cd /usr/share/arduino/hardware/arduino/bootloaders/stk500v2/<br />
root@localhost# <i><span style="color: lime;">avrdude -c usbasp -p m2560 -u -U flash:w:stk500boot_v2_mega2560.hex </span></i><br />
<br />
4) Using Arduino IDE<br />
root@localhost# arduino<br />
<br />
5) Bootloading using Arduino IDE<br />
5.1) Tools-> Programmer->USBasp<br />
5.2) Tools->Board->Arduino Mega 2560<br />
5.3) Tools->Bootloader<br />
5.4) Note!<br />
Check bootloading process and if see trouble shooting if there are errors<br />
<br />
6) New Sketch-> Basic->Digital->Blink<br />
6.1) Compile the program<br />
6.2) Load the program<br />
6.3) Note!<br />
..A LED on pin # 13 must be blinking<br />
<br />
<br />
<b>Details:</b><br />
<br />
1) ACEduino 2560 from Alexan Store<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdLwCKmLPUHU9FHrOI2ijfW5xQ1gxS89TSjQ5wMA77hnCpY5yXZxry2QGHAQVl4xY3Eo0aUnVReCC0ZX_vXnrSdw69CrmtyPBNqa4d3x14JwholBp1WIVjNCT507Qpn910ezOz9sXVeIEY/s1600/tm_aceduinoMega2560.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="206" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdLwCKmLPUHU9FHrOI2ijfW5xQ1gxS89TSjQ5wMA77hnCpY5yXZxry2QGHAQVl4xY3Eo0aUnVReCC0ZX_vXnrSdw69CrmtyPBNqa4d3x14JwholBp1WIVjNCT507Qpn910ezOz9sXVeIEY/s400/tm_aceduinoMega2560.jpg" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
2) USBasp clone from e-gizmo<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO4DP9rG_ai6DTrRCozU8pFPoBrp3ywiQ-nKSO-AHrC0c0TRQAB1j8iHm3Mw9IJ0mPIguVmsf2Z46zEBc5g4A_8MTFrI-Pm5lq-h7oQGoeVFDKGyelG6DeLmIWZLbFBv7fzCm9P3wddz7R/s1600/USBasp.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="267" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO4DP9rG_ai6DTrRCozU8pFPoBrp3ywiQ-nKSO-AHrC0c0TRQAB1j8iHm3Mw9IJ0mPIguVmsf2Z46zEBc5g4A_8MTFrI-Pm5lq-h7oQGoeVFDKGyelG6DeLmIWZLbFBv7fzCm9P3wddz7R/s400/USBasp.png" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
3) ICSP pin settings of Arduino Mega2560 and USBasp clone<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU50CWMegCiKLdUTAmk2AMmGbdcZiP_tvRWvqwiJHTf4bqq05zGqwmyg5KQLy09hyMWZ7hKU1qduRUIII5DqR0bR_rSvn2ud7Yn0g6eF6PTsSdToMaLoZTBk6WDzVAfjq53BLgFWrxlNBD/s1600/ICSP.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="215" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU50CWMegCiKLdUTAmk2AMmGbdcZiP_tvRWvqwiJHTf4bqq05zGqwmyg5KQLy09hyMWZ7hKU1qduRUIII5DqR0bR_rSvn2ud7Yn0g6eF6PTsSdToMaLoZTBk6WDzVAfjq53BLgFWrxlNBD/s400/ICSP.png" width="400" /></a><br />
<br />
<br />
<br />
<a href="http://www.blogger.com/blogger.g?blogID=8883986078765682368" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><a href="http://www.blogger.com/blogger.g?blogID=8883986078765682368" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><a href="http://www.blogger.com/blogger.g?blogID=8883986078765682368" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><a href="http://www.blogger.com/blogger.g?blogID=8883986078765682368" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
4) Connecting ACEduino2560 and USBasp programmer<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoRn6wqnPBJct6vBdOEhNeauFZ5JSUZc4Pun0ECmKNTXUuHN8eOmPuusILxjHYL-7HIJLWJrsuaFDR3dHBD3eP3h18nwo51iYrmrJun5xMYDlz6UXaZl62Spl1nYvtGbfz6iACVKyOzzfY/s1600/MegaUSBasp.jpeg" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="160" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoRn6wqnPBJct6vBdOEhNeauFZ5JSUZc4Pun0ECmKNTXUuHN8eOmPuusILxjHYL-7HIJLWJrsuaFDR3dHBD3eP3h18nwo51iYrmrJun5xMYDlz6UXaZl62Spl1nYvtGbfz6iACVKyOzzfY/s400/MegaUSBasp.jpeg" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
5) Setting usb driver in udev rules<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkn_CTcTU0aJ8hlzezvHINA7BQIkDrqmJXpV-mEXYQE1f3jdgIbfZbh5T0FH24UPy09Mhjo4U0O8DxmoU63XykaH092cD2b5sZQMHFLcgwZRvhVQC6rvHBwGidloeHRi7giJPAjJNIGPcw/s1600/udev.jpeg" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="252" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkn_CTcTU0aJ8hlzezvHINA7BQIkDrqmJXpV-mEXYQE1f3jdgIbfZbh5T0FH24UPy09Mhjo4U0O8DxmoU63XykaH092cD2b5sZQMHFLcgwZRvhVQC6rvHBwGidloeHRi7giJPAjJNIGPcw/s400/udev.jpeg" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
6)Successful loading firmware/bootloader in CLI avrdue<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggaDDI7AGEOBbS7YLofaaMGxe0JgnjH9iDAoVWIFqrTXCDgA0Qki4WltSkcthD5pd63nbcJhSB-z1zDAWD8HcHYx8U4ucvs6d-rV8f4X-cMMopT3iF9GbPxseNeELsP0E_I1zVqKMISBuc/s1600/Write2560-a.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="252" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggaDDI7AGEOBbS7YLofaaMGxe0JgnjH9iDAoVWIFqrTXCDgA0Qki4WltSkcthD5pd63nbcJhSB-z1zDAWD8HcHYx8U4ucvs6d-rV8f4X-cMMopT3iF9GbPxseNeELsP0E_I1zVqKMISBuc/s400/Write2560-a.png" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
7) Firmware bootloading using arduino 1.5 IDE<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQAXYJOCTRRh9FJ01JWRKZ1pDLUgZpK_Mxaa0kk1uueD0B4TwZ78NU9R_YYWHYvcTAoNcID4SEBoccP8pzVi6MCG_G7oY7cBCYdPGEatPcOFEnx62Tp4Ph2bPMZe5zaH_wKaENNubObvzr/s1600/Bootloading.jpeg" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="116" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQAXYJOCTRRh9FJ01JWRKZ1pDLUgZpK_Mxaa0kk1uueD0B4TwZ78NU9R_YYWHYvcTAoNcID4SEBoccP8pzVi6MCG_G7oY7cBCYdPGEatPcOFEnx62Tp4Ph2bPMZe5zaH_wKaENNubObvzr/s400/Bootloading.jpeg" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
(8) Sample blinking program in Arduino Mega2560 <br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNxO-R5YO5bHA5OQam4Naw9wqBTe22Q97aOWCAzccFJ-M-oocqUlYCcoo1eBBaf6Y0ejKeIkdArhTyWwEiFALJ_xS6m4L_MEJCOHY24eqNCj8bpJ8ztR683efk2UmrtZ78w8AAhKicQINj/s1600/Sample+program.jpeg" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="http://www.blogger.com/blogger.g?blogID=8883986078765682368" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><a href="http://www.blogger.com/blogger.g?blogID=8883986078765682368" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><a href="http://www.blogger.com/blogger.g?blogID=8883986078765682368" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><a href="http://www.blogger.com/blogger.g?blogID=8883986078765682368" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><img border="0" height="386" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNxO-R5YO5bHA5OQam4Naw9wqBTe22Q97aOWCAzccFJ-M-oocqUlYCcoo1eBBaf6Y0ejKeIkdArhTyWwEiFALJ_xS6m4L_MEJCOHY24eqNCj8bpJ8ztR683efk2UmrtZ78w8AAhKicQINj/s400/Sample+program.jpeg" width="400" /><br />
<br />
<b>Remarks:</b><br />
<i><br /></i>
<i>1)Trouble:</i><br />
<i><span style="color: red;">avrdude: error: could not find USB device "USBasp" with vid=0x16c0 pid=0x5dc </span></i><br />
<br />
Shooting:<br />
root@localhost# cd /etc/udev/rules.d/<br />
root@localhost# vim 77-coballes.rules<br />
copy and paste this texts:<br />
<br />
<span style="color: #bf9000;"><b>SUBSYSTEMS</b></span>=="<span style="color: red;">usb</span>", <b><span style="color: #f1c232;">ATTRS</span></b>{<span style="color: #134f5c;">idVendor</span>}=="<span style="color: red;">16c0",</span> <span style="color: #f1c232;"><b>ATTRS</b></span>{<span style="color: #45818e;">idProduct</span>}=="<span style="color: red;">05dc</span>", <b><span style="color: #134f5c;">GROUP</span></b>="<span style="color: red;">plugdev</span>", <b><span style="color: #134f5c;">MODE</span></b>="<span style="color: red;">0667</span>"<br />
<br />
root@localhost# chmod 777 77-coballes.rules <br />
root@locahost# chown -R "user"."group" 77-coballes.rules<br />
root@localhost# /etc/init.d/udev restart<br />
<br />
Note!<br />
Then try methodology no. 6<br />
<br />
<br />
2) Trouble:<br />
no avrdude:<br />
<br />
Shooting<br />
root@localhost# which avardude<br />
root@localhost# yum install avr*<br />
<br />
<b>Conclusion:</b><br />
Solved : Loading bootloader in Arduino Mega 2560 using USBasp in Linux :)<b> </b>E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com1tag:blogger.com,1999:blog-8883986078765682368.post-56564003416876866692013-01-08T23:07:00.000-08:002013-01-11T20:16:26.443-08:00Embedded Proxy Server(ARM9) -mini2440<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbrfz6PPEJI7bceXFVZJCpLuy2JM8OwJZzo9WXRCg_Xk-5eDGw_7GOcw87AoCoQsZN5w-H1GQgjrS-LU4LdP1e9EFZLXch9iixMiOrEnrtaV9JcqP7VzNSS_gBjlqEjPCmrb9UrwwDwNGR/s1600/Screenshot-9.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0OrQtNI6c67kM52UmtEmuFdv0ma1Djx8dkaFOzV4yuewUoAIWbgdH7J6xNaQShEYhvpMMcTmrbv6MnhZjwo6Kq6lVnhgx0bAcdtiebxkjM8KOiYOI3rxTksoAUCvKOex3yYJOvjDN04q9/s1600/Micro+Server.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0OrQtNI6c67kM52UmtEmuFdv0ma1Djx8dkaFOzV4yuewUoAIWbgdH7J6xNaQShEYhvpMMcTmrbv6MnhZjwo6Kq6lVnhgx0bAcdtiebxkjM8KOiYOI3rxTksoAUCvKOex3yYJOvjDN04q9/s400/Micro+Server.JPG" width="400" /></a></div>
<br />
<br />
<b>Introductions:</b><br />
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Hello folks,welcome to the another entry of this MCU blog. It's almost one semester that I did not write on this wall-busy with some tasks outside the cyber-world. Anyway, this new topic well get you interested and I'm so sure about that ;its related to proxy programming and cross compiling the code from an intelx86(32-64 bit) to an ARM9 architecture. I urged myself to ease the pain of debugging the "wcol proxy" program that lasted for 4(four) weeks -awesome stuff.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
I was just fascinated of the RFC 1919 which means "proxy" server and RFC 1945 which is HTTP/1.0 protocol,how proxy server came to work ,and I was challenged to port the said intel format source code in a tiny PC, the mini2440 .The source of this program was an inheritance of the wcol proxy development , with careful tweaking and debugging the source code ,it eventually run in an ordinary PC ( with installed Linux OS). You can recompile any proxy server source code available on the net and cross-compile it in a GCC-ARM compiler. But for your comfort I have given a sample proxy program that can be uploaded via our FB Group(Philippines Society of Computer Engineers), and don't your worry this is an open group.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Mini2440 as what you had seen in the main photo, is clocked to 500Mhz and it has 512MB /1GB RAM to functions well as proxy server- its my expectation that at-least there would 5 simultaneous http request before it will have a noticeable processing delay. <br />
<br />
Below are the details on how you folks can replicate my work, there I've attached video for a more vivid tutorials.Hope that you will learn things a little bit. By the way ,this was a previous assignment in our MIS class-client & server programming.So get it on... <br />
<br /></div>
<br />
<br />
<b>Requirements:</b><br />
<br />
Software:<br />
1) Linux OS(Fedora 14)<br />
2) arm-linux-gcc 4.3.2<br />
3) gcc <br />
4) minicom (serial monitor)<br />
5) telnet <br />
<br />
Hardware :<br />
1) PC<br />
2) SD card and adapter<br />
3) mini2440<br />
4) Other PC as another client<br />
<br />
<b>Methodology:</b><br />
Note: you may choose files that are not installed yet.<br />
<br />
1)Installations <br />
<br />
root@locahost# yum install minicom-s<br />
root@localhost # yum intall telnet*<br />
root@localhost# yum install gcc<br />
root@localhost# yum install *httpd*<br />
<br />
<br />
2) Downloads<br />
<i><b>download proxy server code at PSCoE FB group page</b></i><br />
https://www.facebook.com/GIIIIRRRLIE#!/groups/256202857800280/<br />
<br />
<i><b>download arm-linux-gcc (4.3.2) </b></i><br />
https://code.google.com/p/princess-alist/downloads/detail?name=arm-linux-gcc-4.3.2.tgz&can=2&q=<br />
<br />
3) Untar and cross compile <br />
root@localhost# mv arm-linux-gcc-4.3.2.tgz ../<br />
root@localhost# cd ../<br />
root@localhost# tar -zxvf arm-linux-gcc-4.3.3.tgz<br />
root@localhost# cd /usr/local/arm/4.3.2/bin<br />
root@localhost# export PATH:PATH=/usr/local/arm/4.3.2/bin<br />
<br />
Please copy "coballesIS238Proxy.c" in the "/usr/local/arm/4.3.2/bin" with this cli command<br />
<i>Note: Try also to check if its bug free-using the basic gcc compiler! </i><br />
root@localhost@ cp coballesIS238Proxy.c /usr/local/arm/4.3.2/bin<br />
<br />
Now cross compile the source code<br />
root@localhost# <span style="color: blue;">arm-linux-gcc -mcpu=arm9 -Wall -o coballesIS238Proxy IS238Proxy.c</span><br />
<br />
A green text of file-name(coballesIS238Proxy) will appear as it was compiled already.<br />
<br />
4) Copy the cross-compiled program(now in binary file) in the SD card<br />
root@localhost# df -a<br />
<br />
root@localhost# mkdir /mnt/SD<br />
root@localhost# mount /dev/sdb(?) /mnt/SD<br />
root@localhost# cp "coballesIS238Proxy" /mnt/SD<br />
<br />
<br />
5)So you have cross-compiled the code and copied in the SD card .Next, copy the binary file from your sd card to the mini2440<br />
root@localhost telnet IP address of mini2440<br />
[root@FriendlyArm] login<br />
press enter ....see the mini2004 shell!<br />
[root@FriendlyARM] <br />
<br />
6) Then insert the SD card in the mini2440<br />
[root@FriendlyArm] df- a<br />
<br />
create a directory in your mini2440 shell <br />
[root@FriendlyArm] mkdir /mnt/sdcard<br />
[root@FriendlyARM] mount /dev/mmcblk0 /mnt/sdcard <br />
<br />
..then copy the code <br />
[root@FriendlyArm] cd /mnt/sdcard<br />
[root@FriendlyArm/sdcard] cp coballesIS238Proxy ../bin<br />
<br />
7) Bingo! run the embedded server now..!<br />
[root@FriendlyArm/bin] <span style="color: blue;">./coballesIS238Proxy -p 350</span><br />
<br />
<br />
<br />
<b>Details:</b><br />
<br />
0) Downloading "arm-linux-gcc-4.3.2.tgz <br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgr_M97K8wIWAlBKPTI7IKUBDK0TU4obIGvpkFytvAlzqapvhYm_LLtUfgje4y_QOuK1cSH-aQiJMMP3Z668AJ8qyKgTDgfTD0uH2XXlzd6KvOQSOn4V50OZu2XQf97VRZxkleTsH14Zj9_/s1600/Screenshot-1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="210" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgr_M97K8wIWAlBKPTI7IKUBDK0TU4obIGvpkFytvAlzqapvhYm_LLtUfgje4y_QOuK1cSH-aQiJMMP3Z668AJ8qyKgTDgfTD0uH2XXlzd6KvOQSOn4V50OZu2XQf97VRZxkleTsH14Zj9_/s320/Screenshot-1.png" width="320" /></a> <br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
1) recompiling proxy source code<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA0bq_Eyl8K4xHO-0WGiwwW_Y3rZBhyeJklDkfASghQgF5UkMCvMY0h4BoZgZ_lZQECYm-qAf0dZe2kokFv7xGkLOm0LzdMXh8MukH3LZ1hshn2Esg23AJbxFewHJb4o5qGZX-pAtyqvVP/s1600/Screenshot-2.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="182" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA0bq_Eyl8K4xHO-0WGiwwW_Y3rZBhyeJklDkfASghQgF5UkMCvMY0h4BoZgZ_lZQECYm-qAf0dZe2kokFv7xGkLOm0LzdMXh8MukH3LZ1hshn2Esg23AJbxFewHJb4o5qGZX-pAtyqvVP/s320/Screenshot-2.png" width="320" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
2) Checking SD mounting<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEif0ifVD3La3y2UsHCri9OXxdlHT50fcafvwXoJZxGT-PdlIZ-WCycmKFNCkreSzsa3njha_XEeoLKHjJixiN1u6ULcG83iGKXJ4cYSEbzbzR7JI3TduXi5pxTnbsgo5pcvujnesBLGICP9/s1600/Screenshot-10.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="187" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEif0ifVD3La3y2UsHCri9OXxdlHT50fcafvwXoJZxGT-PdlIZ-WCycmKFNCkreSzsa3njha_XEeoLKHjJixiN1u6ULcG83iGKXJ4cYSEbzbzR7JI3TduXi5pxTnbsgo5pcvujnesBLGICP9/s320/Screenshot-10.png" width="320" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
3) Copying the binary files after SD card mounting<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbrfz6PPEJI7bceXFVZJCpLuy2JM8OwJZzo9WXRCg_Xk-5eDGw_7GOcw87AoCoQsZN5w-H1GQgjrS-LU4LdP1e9EFZLXch9iixMiOrEnrtaV9JcqP7VzNSS_gBjlqEjPCmrb9UrwwDwNGR/s1600/Screenshot-9.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="186" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbrfz6PPEJI7bceXFVZJCpLuy2JM8OwJZzo9WXRCg_Xk-5eDGw_7GOcw87AoCoQsZN5w-H1GQgjrS-LU4LdP1e9EFZLXch9iixMiOrEnrtaV9JcqP7VzNSS_gBjlqEjPCmrb9UrwwDwNGR/s320/Screenshot-9.png" width="320" /></a><br />
<br />
<br />
<br />
<br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEif0ifVD3La3y2UsHCri9OXxdlHT50fcafvwXoJZxGT-PdlIZ-WCycmKFNCkreSzsa3njha_XEeoLKHjJixiN1u6ULcG83iGKXJ4cYSEbzbzR7JI3TduXi5pxTnbsgo5pcvujnesBLGICP9/s1600/Screenshot-10.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><br /></a>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
4) executing the cross compiled binary program in a mini2440 board!<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizQ-5VnpuT0tGC3PeLIpHJQfo0P7JSJZq_bGo07kOgLUUsR3t-EN7_XMsQxyjmyx1QtwoV8mmg0E9NePtg-c0PdCqHZoLzq5Kkd61cLp5x-TJ0sorpWMK-5vOkygO7R5axFD7HNTe9sz2k/s1600/Screenshot-3.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="185" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizQ-5VnpuT0tGC3PeLIpHJQfo0P7JSJZq_bGo07kOgLUUsR3t-EN7_XMsQxyjmyx1QtwoV8mmg0E9NePtg-c0PdCqHZoLzq5Kkd61cLp5x-TJ0sorpWMK-5vOkygO7R5axFD7HNTe9sz2k/s320/Screenshot-3.png" width="320" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZV4yzEnR7feWU1AJ_-O0C8XU7P1ptMYG0q9AqHtB-KFW7eJX3Mcu_QGSdIsx76indKfYxOT3Rg9pClfpWmoYIAi4Bmkmzl952_H1yRYqDefsujw_CEocVQT-xRiUNVCRZTuM_kv30xyYC/s1600/Screenshot-7.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><br /></a>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
5)Error message: " Unreachable host from this network"<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZV4yzEnR7feWU1AJ_-O0C8XU7P1ptMYG0q9AqHtB-KFW7eJX3Mcu_QGSdIsx76indKfYxOT3Rg9pClfpWmoYIAi4Bmkmzl952_H1yRYqDefsujw_CEocVQT-xRiUNVCRZTuM_kv30xyYC/s1600/Screenshot-7.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="196" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZV4yzEnR7feWU1AJ_-O0C8XU7P1ptMYG0q9AqHtB-KFW7eJX3Mcu_QGSdIsx76indKfYxOT3Rg9pClfpWmoYIAi4Bmkmzl952_H1yRYqDefsujw_CEocVQT-xRiUNVCRZTuM_kv30xyYC/s320/Screenshot-7.png" width="320" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
6) Error mesage: " temporary problem with the DNS server"<br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4y23Bx5v-rzAOEuf-pdJ3kc3FkIqvnQVQLzwZKuzQ9RIUi6Cttl8Lt_L9wLAi-TJ7h1GVsMY_I6A5EEJYP83i7VQlD0bRlOpEYtXFRXdDJz8mCkNkp_0Ss5tEQSCdEGadFTNiIZ60Gdw8/s1600/Screenshot-8.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="140" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4y23Bx5v-rzAOEuf-pdJ3kc3FkIqvnQVQLzwZKuzQ9RIUi6Cttl8Lt_L9wLAi-TJ7h1GVsMY_I6A5EEJYP83i7VQlD0bRlOpEYtXFRXdDJz8mCkNkp_0Ss5tEQSCdEGadFTNiIZ60Gdw8/s320/Screenshot-8.png" width="320" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
7) embedded proxy server working in mini2440<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitG57hIpYuj2cQ7OhWiGJ1rzAlyryBIussxkK9aQn3Q2275_3NPMAN62OVu5IiP2xmn3T4cDy5ss-EKHFK_onkAUJ2j8DAeTVKi6MgHtzuj9pIB9xcLvlqNiyMwg0iYGqsGgv-hMXVtGrT/s1600/Screenshot-6.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitG57hIpYuj2cQ7OhWiGJ1rzAlyryBIussxkK9aQn3Q2275_3NPMAN62OVu5IiP2xmn3T4cDy5ss-EKHFK_onkAUJ2j8DAeTVKi6MgHtzuj9pIB9xcLvlqNiyMwg0iYGqsGgv-hMXVtGrT/s320/Screenshot-6.png" width="287" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<b>Summary :</b><br />
<br />
<br />
<br />
<b>Conclusions:</b><br />
<br />
I cracked the proxy code and embed it in mini2440, so I have now a working embedded proxy server<br />
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.blogger.com/video.g?token=AD6v5dwCyqj_gJt1JE6dlPaKyTjHJO6fG_exMPDG8aYwRA5FsYeNz2VaipgnAJt5GJOc0qF7HZdUFXlq9ye-TZmsUA' class='b-hbp-video b-uploaded' frameborder='0'></iframe><br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com0tag:blogger.com,1999:blog-8883986078765682368.post-43838233316715070212011-12-01T19:56:00.000-08:002011-12-02T00:09:32.980-08:00ARM11(Tiny6140) Embedded Board Linux Setup<div class="separator" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxULMTRf-Jv43emI35DVwClZaXBjOQE71jFuN-XoxHQNK5g8YB4SmJWKIoWIavx3s-6dWwavJbQGD89DnYheLlzcolISZFc6nrUWWDpvNxqSg5uwc5_7u8YtkTnuFlBaoD_P2g4PCE-AGe/s1600/Embedded.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxULMTRf-Jv43emI35DVwClZaXBjOQE71jFuN-XoxHQNK5g8YB4SmJWKIoWIavx3s-6dWwavJbQGD89DnYheLlzcolISZFc6nrUWWDpvNxqSg5uwc5_7u8YtkTnuFlBaoD_P2g4PCE-AGe/s640/Embedded.jpg" width="640" /></a></div><br />
<br />
<b>Introductions:</b><br />
Hello Technos!<b> </b><br />
<br />
<div style="text-align: justify;">Next step is to reload a new Linux distro in the Tiny6140 board.Sad thing to tell was that all the documentations were written in Chinese language(t<i>hat's I think- how I ventured to its lesser price/cost</i>).Anyway , Google is there for the translations and firefox add-ons was able to decode whatever Chinese encoding format available as a text inputs. This is a little bit tricky and cracky that I need to rely in free e-books available on the net.Most of the docus' are based in ARM9 but not in an ARM11 architecture, though I need to get it done as soon as possible. </div><br />
<div style="text-align: justify;">However, I've found out that some binary compiler may work in ARM9 as well as in ARM11 architecture ,yet others soft-apps may not ie; kernel ,loader and partition formatter .So then I referred to those images and binaries that functions to both boards (gcc, ,tar ,bin's and etc.).<br />
<br />
As usual here are the steps and details(have fun!)</div><br />
<b>Requirements:</b><br />
<div style="color: blue;"><i>Softwares:</i></div>Linux or Windows XP- <i>use either software </i><br />
SD flasher -<i>making boot loader binaries bootable to SD card</i><br />
USB driver -<i>so that your PC will recognized the board USB port </i><br />
DNW virtual- <i>USB console</i><br />
<span style="color: red;">superboot20110826.bin</span> -<i>bootloader </i><br />
<span style="color: red;">rootfs_qtopia_mcl2.ubi</span> -<i>partition formatter</i><br />
<span style="color: red;">zimage_vga1024x768.bin</span> -<i>kernel</i><br />
<br />
<div style="color: blue;"><i>Hardwares:</i></div>Tiny6140 (ARM11) <i>-embedded board</i><br />
usb cable <i>-interface to shell of Tiny6140</i><br />
serial cable<i>-interface as access to USB link by DNW</i><br />
<br />
<br />
<b>Objectives:</b><br />
1) To install Linux in ARM11(Tiny6140) embedded board<br />
2) To boot Linux OS in a NAND Flash (ROM) of an ARM11 target board<br />
3) To simplify a hardcore embedded board set-up<br />
<br />
<b>Methodology:</b><br />
1) You must have downloaded all the software required <br />
<br />
2) Configure the serial com in your PC ("HyperTerminal) ,<br />
2.a)Program->Accessories->Communications-HyperTerminal <br />
2.b)setting are : <span style="color: blue;">11520,8,N,0</span><br />
2.c)you should see the virtual COM (HyperTerminal) display is responding to the character as output of the Tiny6140 board <br />
<br />
3) Install the USB driver for the Tiny6140, the reason is for your board be detected by the PC-now you have 2 access in your PC via serial and via USB.<br />
<br />
4) In your PC HyperTerminal should display options:<br />
<br />
4.a) First,press <span style="color: blue;">"p"</span> to load the <i>superboot</i> loader , the board will call the <span style="color: blue;">DNW</span> to transmit the superboot(<span style="color: red;">superboot20110826.bin</span>) binary(you should kept that huh?)<br />
<br />
4.b) Then, press<span style="color: blue;"> "k"</span> to load the kernel(<span style="color: red;">zimage_vga1024x768.bin)</span> , the board will call the DNW to transmit the kernel image (you have there for LCDs and VGAs image-find it!). <br />
<br />
4.c) Then press <span style="color: blue;">"u"</span> for ubi format of your board disk partitioning(<span style="color: red;">rootfs_qtopia_mcl2.ubi</span> ) , the board will call the DNW to transmit the qtopia UBI binary image.<br />
<br />
5) You should see the rolling characters , until you will stumble to the prompt asking you to press in any keys for it to display the console(shell)<br />
<br />
6) Turn off the board , then switch S2 to NAND booting<br />
<br />
7) That is it, Tiny6140 board will now proceed booting via NAND flash. <br />
<br />
Details(1)Downloading kernel images<br />
<img border="0" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbQFn5oSEpVydtNl5Gksw6fGn3UBr0p0TZGpYvvRkSrJmAHuhnPhd8zl7E4JdOjfwk1skvZnpQaMHHSJsyla-JsLuVP8sIiFE-cc2MiscNm5so-MksmYq0K7u9pbQr9MEe3bE96421uWFZ/s400/Screenshot-2.png" width="400" /><br />
<br />
Details(2) SD flasher detecting the SD card<br />
<img border="0" height="340" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-7JKYvHc9NPkwukJmLl3347GvIN42q_m2mAKCPXFu5tAmwLegZsxx4GIRlkWimMfQAhyhbVIvlQxAN-y_vCZw1jEyNJJiZxYyLCZ2DdgAzFuNAMQnEianbgz-_-egMCXx08m9vSv8_Qxf/s400/Screenshot-5.png" width="400" /> <br />
<br />
Details(3)After by superboot format ,options prompt appear during boot up<br />
<img border="0" height="263" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEil7e4dUx32ULx5Gr1AOCK57oa19nExyS5ajMzJGAzGzGyuh-IAvlcCahiUfUpgAm9y4uAgIIWEsNOMx9DPwBs4cAuhqzCPxvvI9vNufCJB8dPptjLsASbAAMxLfgrGBSiQlcJvT6srykhd/s400/Screenshot-1.png" width="400" /><br />
<br />
Details(4)Included USB driver (installed usb_driver.zip) Windows "Device Manager" <br />
<img border="0" height="280" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJX8DFxumsEMEulYewSDTv-xRKjyouZ0Bj5McF4tl5IcE8Fn6LTbDmCZxUt1UUqLWrrK3VZbnrWQZ4WnISmGsEFVqk2nd-BLqWmz9VewE2KZxjjap9PUb3ITywqV7xK3BsOS2hfhUxSa69/s400/Screenshot-4.png" width="400" /><br />
<br />
Details(5)DNW called by the Tiny6140 board(detected USB)<br />
<img border="0" height="190" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEif-78q3mmLdNXqfPS5kaqQuiqBS08cqes9Pt-kz9SqyDJONHbp2pCUAN_YRqJI_3rUbysqpAjO2k8pa_cssQi7WP8zniiQYxGQ_UtgKYVpsE1YIHOpgmt8lRWpXBcBQ_8bJiLrV7S8iZ6G/s400/Screenshot-3.png" width="400" /><br />
<br />
Details(6)DNW [OK] ready to transmit bins and images<br />
<img border="0" height="270" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCQM02_fnBJkt3ubcAXcr7xoRCVcQhPRtEGFQbVGJzwUkVEQT6FslmrZi4fb5F4BhVtRXN00S_jjo1yn_qtE5Ci4dsWvlfWpcl2QFN4btM8I6yF1DjWSZUecr93_i20AaewUVNtmV_QdJh/s400/Screenshot-6.png" width="400" /><br />
<br />
Details(7)Flashing the NAND memory<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjL3Wq8KsXNuMwjJQ_-yMx4G0kn3I_Qp020NV-psVT4blJGtQc_8TbVTqxQ_zPNL2nZsKmX5Od8-5ONLvZIXDWPvGrAtpwF3B2ofJlLVm8NvVH9pGR1MU32oxObJvNSHsA1NbKbiQf52zE3/s1600/Screenshot-2.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="263" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjL3Wq8KsXNuMwjJQ_-yMx4G0kn3I_Qp020NV-psVT4blJGtQc_8TbVTqxQ_zPNL2nZsKmX5Od8-5ONLvZIXDWPvGrAtpwF3B2ofJlLVm8NvVH9pGR1MU32oxObJvNSHsA1NbKbiQf52zE3/s400/Screenshot-2.png" width="400" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Details(8)Almost finished loading<br />
<img border="0" height="262" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiE6Tizc6FUOSI9Xz-qkrlADoO3rpR_FaGapFGER-GVnliDrkMPZpfuBaz_muf-4kADTum8mub35Khml8lzzfZEVr6ktE3TmFzOGhTdoBw4MZjBgIfvlyalHMXAt9CK2YauMU_DgcZMU8KD/s400/Screenshot-11.png" width="400" /><br />
<br />
Details(9)Finally the Tiny6140 shell appear-and were done!<br />
<img border="0" height="261" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnjUIM7gP_rGwwfgFO25i5_aD2gDi05NIYnwJ6k5NS-wCe8K-JQ-Ro1Y-h6kx8fYmBXDDQsU2Kfke61SNjBrrpZgu__bIYEbTQKS_415XD-6sAa8nc1KcJU4L1u3dITL71fJAowTaByOYB/s400/Screenshot.png" width="400" /><br />
<br />
<b>Remarks:</b><br />
1)Next , booting Android/Linux/WinCE/Ubunto OS to the Tiny6140 board<b> </b><br />
2)As simple as that hardcore embedding<br />
<br />
<b>Conclusions: </b>E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com4tag:blogger.com,1999:blog-8883986078765682368.post-52480880039039021932011-11-24T17:59:00.000-08:002011-12-01T17:06:55.989-08:00ARM9(mini2440) Embedded Board Linux Setup<div class="separator" style="clear: both; text-align: center;"></div><a href="http://cobecoballes-embedded.blogspot.com/2011/11/arm9-board-linux-embedded-setup.html"><img border="0" height="377" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXcQYRIE0umSwg1e3gkxcTUr53o30YGV8VCmnrJdr7srcJoPoye7OEn0YqPPPv5j32qauR_8vdojt-jJVQuS5Ozro0I2pE-_5-YuDd-2V7gZM1w7ym75fVKAFnvAoXg2W7la7GUh3EhYe6/s400/Screenshot.png" width="400" /></a><br />
<div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><b>Introductions:</b></div><div class="separator" style="clear: both; text-align: left;"><i><br />
</i><b> </b></div><div class="separator" style="clear: both; text-align: justify;">After of a long vacations such as holidays, calamities (storm,floods or etc), we're always caught by surprise about the drained batteries ,damaged UPS ,hanged servers , overheated power supplies and worst the total malfunctions since the air-conditioning system had been off. The reason was just that we can't anticipate these occurrence or technical troubles in the 24/7 running Data Center-everybody is on leave and nobody is to blame.Yet,the most things we are worried so much are the cost of purchasing the replacements for the said equipments ,and that mishap requires a lot of budget requisitions.</div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;">So your author decided to design a complete robust yet low cost Data Center Monitoring System .It will diagnose every client/s and server/s net activity both its hardware and software, the AC connections (power supplies and the DC generator) .It will include monitoring variable parameters such as : smoke,humidity ,temperature and noise inside the server room. The monitoring report would be available via GPRS ,GSM and web, and there is a restrictions to interact the said system.</div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;">The second option is whether to use a single board PC(ARM9) or a micro controller (PIC +ENC28j60) .So we needed to weigh the following factors: cost,capability and efficiency , and the choice went to a single embedded PC which is the Arm9 -because of the technology competitions nowadays its price is almost equal to a micro controller yet the capacity had an amazing difference.</div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;">So before the author would post in the design of monitoring system , let us first discuss the detail on the Arm 9 board set-up-and here is the detail .</div><div class="separator" style="clear: both; text-align: justify;"> </div><div class="separator" style="clear: both; text-align: left;"></div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><b>Requirements:</b></div><div class="separator" style="clear: both; text-align: left;"><i>Hardware:</i></div><div class="separator" style="clear: both; text-align: left;">ARM9 Evaluation Kit (Samsung chip</div><div class="separator" style="clear: both; text-align: left;">-533-633Mhz </div><div class="separator" style="clear: both; text-align: left;">Serial Cable</div><div class="separator" style="clear: both; text-align: left;">ARM9 JTAG</div><div class="separator" style="clear: both; text-align: left;">LCD2VGA </div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"></div><div class="separator" style="clear: both; text-align: left;"><i>Sooftwares:</i></div><div class="separator" style="clear: both; text-align: left;">Linux OS (Ubunto ,Fedora ,CentOS)</div><div class="separator" style="clear: both; text-align: left;">minicom</div><div class="separator" style="clear: both; text-align: left;">ztelnet </div><div class="separator" style="clear: both; text-align: left;">Gambas2 </div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><b>Objectives:</b></div><div class="separator" style="clear: both; text-align: left;">1) Load a bootloader to a target Arm9 board</div><div class="separator" style="clear: both; text-align: left;">2) Load a kernel to a a target Arm9 board</div><div class="separator" style="clear: both; text-align: left;">3) Load applications to the Arm9 target board</div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"></div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><b>Methodology: </b></div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;">1) Please do the basic physical setup of ARM9 evaluation board</div><div class="separator" style="clear: both; text-align: left;"><b> </b>a) serial cable</div><div class="separator" style="clear: both; text-align: left;">b) LAN RJ45 </div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;">2) Download the required software for accessing the board</div><div class="separator" style="clear: both; text-align: left;">a)minicom for serial/com access</div><div class="separator" style="clear: both; text-align: left;">b) ztelnet for telnet setup</div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;">3) Select "b" in the menu to boot the board in RAM</div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;">4) Configure the "eth0" IP setting similar to your LAN</div><div class="separator" style="clear: both; text-align: left;">root@FriendlyArm/ cd /etc/</div><div class="separator" style="clear: both; text-align: left;">root@FriendlyArm/ cp eth0-setting eth0-setting.bak </div><div class="separator" style="clear: both; text-align: left;">root@FriendlyArm/ vi etho-setting </div><div class="separator" style="clear: both; text-align: left;"><br />
</div>5) Explore files in the Arm9 linux shell<br />
<div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"> Detail(1) minicom serial interface for Linux</div><div class="separator" style="clear: both; text-align: left;"></div><div class="separator" style="clear: both; text-align: left;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8vuOI9F-xlz6aqh6mRKKSAw59xdbF8ZHU3jk4RSV8Hn0X4oISfDRhe7mRbM1NSJej7ZCFXwJPmoduZMhBuu2FhJox-cXYOn0dtzzlBtk_uj03TdtZmhtSHmggPbHIrLLXlb2BHefXIQPw/s1600/Screenshot-4.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="277" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8vuOI9F-xlz6aqh6mRKKSAw59xdbF8ZHU3jk4RSV8Hn0X4oISfDRhe7mRbM1NSJej7ZCFXwJPmoduZMhBuu2FhJox-cXYOn0dtzzlBtk_uj03TdtZmhtSHmggPbHIrLLXlb2BHefXIQPw/s400/Screenshot-4.png" width="400" /></a></div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;">Detail(2) Configuring the minicom settings</div><div class="separator" style="clear: both; text-align: left;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1NfQLHWVcb_1kTBQ_lgCeqdmgb1SDfeWut7oBA0s4TivFX9LHClw6np96M8nu-T7YJwJ3eh3F99M9AXpQr6f6iKCUUsxrNKyEscZLLPSS4yMO0LsUENfWdHywQOOPoMKTVFgbP6Brdrb6/s1600/Screenshot-5.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="276" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1NfQLHWVcb_1kTBQ_lgCeqdmgb1SDfeWut7oBA0s4TivFX9LHClw6np96M8nu-T7YJwJ3eh3F99M9AXpQr6f6iKCUUsxrNKyEscZLLPSS4yMO0LsUENfWdHywQOOPoMKTVFgbP6Brdrb6/s400/Screenshot-5.png" width="400" /></a></div><div class="separator" style="clear: both; text-align: left;"></div><div class="separator" style="clear: both; text-align: left;"></div><div class="separator" style="clear: both; text-align: left;"></div><div class="separator" style="clear: both; text-align: left;"></div><div class="separator" style="clear: both; text-align: left;"></div><div class="separator" style="clear: both; text-align: left;"></div><div class="separator" style="clear: both; text-align: left;"><br />
</div>Detail(3) Detecting Arm9 via serial com<br />
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><img border="0" height="280" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5DAbJ4xCXQP9AB5hIFWO193p007bwahCEmKUkk38ZN6na-F599eyBUWysQekH_ohu3mdONM8bE6HhLXGhGYjBVTPmMz2mofE4wzL9VOX1eA82NgdpERayPAFH9CMvvvV8cgWEQAcLr7wI/s400/Screenshot.png" width="400" /></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><div class="separator" style="clear: both; text-align: left;"><br />
</div><div style="text-align: left;"><span style="font-size: small;">Detail(4) booting Arm9 via NAND flash</span></div><div style="text-align: left;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6feYvTr0vzzeePE6_XNhwe6dOH2x7OyKtwaUJtroXXMRGA86ZBJGo2Me0kw0K0XY6NFxrqOWtYmekNHT6k29ecMyTyPUKrF7gfbE5UkNTG6lg6588h8gqRs098ifgIVaaQlEQul2RtKlH/s1600/Screenshot-1.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="298" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6feYvTr0vzzeePE6_XNhwe6dOH2x7OyKtwaUJtroXXMRGA86ZBJGo2Me0kw0K0XY6NFxrqOWtYmekNHT6k29ecMyTyPUKrF7gfbE5UkNTG6lg6588h8gqRs098ifgIVaaQlEQul2RtKlH/s400/Screenshot-1.png" width="400" /></a></div></td></tr>
</tbody></table><div class="separator" style="clear: both; text-align: left;">Detail(5) Setting the board's IP address</div><div class="separator" style="clear: both; text-align: left;"><img border="0" height="296" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwB3h1DqoQV0ea7UYTmSQY8d5vHicPBfc0MQAnrrGxu88S55DE8IJu7OUSAIKrQ0fo8kJvywPrEOP4Kt72_YlinpsLP0UNFn-CqG8uJxtiGkbO7spuJl6iOPlaq_M2TFDyBuxV3ypP-o8H/s400/Screenshot-2.png" width="400" /></div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;">Detail(6)Browsing the Arm9 default page</div><div class="separator" style="clear: both; text-align: left;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgb8FMICezSdbuufZt1tHhNsdRwwUF2O6VjVk1NJ-KgIm2jWhvOwtevoV5xg-H4CvSkCpXtKRzGYG56C4QuCxxzcBFXX9lVYqkuRzThyWyLGzqm3DOhBwbz8srw7bLcd_xX5PA4JNZ28uUU/s1600/Screenshot-3.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="382" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgb8FMICezSdbuufZt1tHhNsdRwwUF2O6VjVk1NJ-KgIm2jWhvOwtevoV5xg-H4CvSkCpXtKRzGYG56C4QuCxxzcBFXX9lVYqkuRzThyWyLGzqm3DOhBwbz8srw7bLcd_xX5PA4JNZ28uUU/s400/Screenshot-3.png" width="400" /></a></div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><b>Remarks:</b></div><div class="separator" style="clear: both; text-align: justify;">Its another refreshing ideas to level up embedded applications,especially when times suggest a better competitions between a traditional micro-controller/microprocessor and a single board cpu , its cost, efficiency,capability and rigidity.</div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><b>Conclusions: </b></div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><br />
</div>E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com1tag:blogger.com,1999:blog-8883986078765682368.post-65339858146419362452011-05-04T03:26:00.000-07:002011-05-27T22:48:11.596-07:00CHDK reInventing Canon Camera<span style="font-weight: bold;">Introductions:</span><br /><div style="text-align: justify;">This tutorial will be dealing about the hard core of hacking Canon Cameras. Some technique or reverse engineering will be explained how signals are turned into a parsed data and the combinations that lead to the analysis of protocol behind the original Canon Firmware.<br /><br />Here we explain and give understanding :<br /><br />How hacking is done in Canon?<br /><br />How signals are decoded and converted into a data<br /><br />How data are analysed as format of protocols<br /><br />Its preamble?<br /><br />Its ports addresses?<br /><br />Its acknowledge data<br /><br />How data is checked and evaluate<br />CRC and checksum<br /><br />and so forth..<br /><br /></div><br /><br /><span style="font-weight: bold;">Requirements:</span><br />Canon Cameras<br />LED,Photo Diode<br />DB9 serial Comm port<br />Microphone (sound into waves)<br />Oscilloscope<br /><br /><br /><span style="font-weight: bold;">Objectives:</span><br />1) To explain How hacking is done in Canon Camera<br />2) How to bypass the original Canon Firmware using CHDK scripts<br />3) To give an example of reverse engineering Canon PowerShot G11<br /><br /><br /><span style="font-weight: bold;">Methodology:</span><br /><br /><br /><br /><br /><br /><br /><span style="font-weight: bold;">Remarks:</span><br /><br /><br /><span style="font-weight: bold;">Conclusions:</span>E^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com0tag:blogger.com,1999:blog-8883986078765682368.post-36124594510217224032011-04-15T00:11:00.001-07:002011-06-22T19:59:19.283-07:00Canon G11 Remote Capture (CHDK)<span style="font-weight: bold;"><br />Introductions:</span><span style="text-decoration: underline;"><br /></span><div style="text-align: justify;">This is a little bit article to investigate how we can change a Canon G series features,since Canon Company had stopped supporting the remote triggering of its Powershot G series a lot of of hobbyist, hackers and enthusiast are finding ways to resolve this issues or on the other hand their efforts are to indigenously improve and extend their cameras' shooting capabilities.<br /></div><br /><div style="text-align: justify;">In our case ,since there are 2(two) available pairs of G11 in the laboratory and want them to be used in book scanning , hence a remote triggered must be one of its features and so the solutions is to look for an alternative hard coded software that will bypass Canon camera firmware and therefore extends its features in some ways.<br /></div><br />Well,I have these ideas in mind:<br /><br /><div style="text-align: justify;">(One)Get the latest CHDK for G11 that supports USB/PTP or (Two)Load the alternative firmwares SDM scripts; then on the PC side use the gphoto2 and Gambas2 would intervene the whole process (as plugging ON and OFF the USB) .And instead of a mechanical switch I'll try to use micro-controller interface to USB for a camera access while in the process upload a captured images in the SD Card .<br /></div><br /><div style="text-align: justify;">I have some reference to follow.<br />Good article for remote capture using CHDK /SDM (by: Tom Horsley)<br />http://home.comcast.net/~tomhorsley/hardware/scanner/software.html<br />CHDK site<br />gphoto2 site<br />SDM site<br />well again lets include gambas2<br /></div><br /><br /><span style="font-weight: bold;">Requirements:</span><br />Camera Version Finder<br /><span style="font-style: italic;">http://savedonthe.net/download/247/CameraVersion13-sfx.html</span><br /><span>CHDK firmware port to G11 version 100l.<br />http://chdk.setepontos.com/index.php?topic=4647.510<br /><br />SDM<br />Gphoto2<br />Gambas2</span><span style="font-weight: bold;"><br /><br />Objectives:</span><br />1) Extended G11 (Canon Powershot G series) extended its shooting mode features and capabilities<br />2) Get G11in RoBook Scanning task.<br /><br /><span style="font-weight: bold;">Methodology:</span><br /><br />1) Get SD Card<br />Note:<br /><span style="font-style: italic;">If the card is 2GB you can partition it directly , however when the capacity is much larger you can partition it into two , the other space is for booting while the other one is for <span style="font-weight: bold; color: rgb(204, 0, 0);">CHDK</span> files.</span><br />1.1) root@localhost # df -h<br />1.2) root@localhost # yum install gparted<br /><br />2) Click " Applications" menu<br />2.1) Click System Tools<br />2.2) Click gparted<br />2.3) Enter your root password<br /><br />3) Formatting SD card 2GB partition into FAT16<br /><br />4) Make the SD Card bootable<br /><br />5)For Auto-loading the <span style="color: rgb(204, 0, 0);">CHDK</span> scripts <span style="font-weight: bold;">lock </span>the SD Card<br /><br />6) Insert the SD Card in the Camera then turn ON<br /><br />7) You will see the image appearing as shown in "Detail(5)".<br /><br />8) Debugging the USB/PTP script<span style="font-weight: bold; font-style: italic;">(at our own risk!)</span><br /><br />Detail(1):Camera Version With G11 capture photos<br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAvVbmI4Am3bz5JMPBF5BTRBRUC_5BTlcEuUk0haTGrtaxuUMeB8QlM_EPgkd5-IYpJhUwYljs6TnHHaNeSKBpkGctjPm2FLIAB7E7eXBTCKbthCPFpKxBasDrcrxQ0mBddRGFhc_1udeQ/s1600/Screenshot-1.png"><img style="cursor: pointer; width: 400px; height: 198px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAvVbmI4Am3bz5JMPBF5BTRBRUC_5BTlcEuUk0haTGrtaxuUMeB8QlM_EPgkd5-IYpJhUwYljs6TnHHaNeSKBpkGctjPm2FLIAB7E7eXBTCKbthCPFpKxBasDrcrxQ0mBddRGFhc_1udeQ/s400/Screenshot-1.png" alt="" id="BLOGGER_PHOTO_ID_5596767782535849954" border="0" /></a><br /><br />Detail(2):Camera Version Finder<br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0tT2NY725ck894VrGtDhrnlRk_EEE4G4lRWz4QJJMXSN3JcVcFxmyjwXyelJ1bUAWJUUD-44vpWk5r8CALCCIWVEIWPSpBOCFsY9xWlFZ1wwi-kn7RGmLiQwJdtj0x86CJCShT8zaKIST/s1600/Canon+Version.jpg"><img style="cursor: pointer; width: 400px; height: 250px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0tT2NY725ck894VrGtDhrnlRk_EEE4G4lRWz4QJJMXSN3JcVcFxmyjwXyelJ1bUAWJUUD-44vpWk5r8CALCCIWVEIWPSpBOCFsY9xWlFZ1wwi-kn7RGmLiQwJdtj0x86CJCShT8zaKIST/s400/Canon+Version.jpg" alt="" id="BLOGGER_PHOTO_ID_5596762148776190034" border="0" /></a><br /><br />Detail(3) Generated camera version from an image files<br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUbOJz9xmbkkxJSaRfXTAEZs1A-IfgQaaBi7JeW0qsuvOV6LNskYbqD0ci1gtGa2viPrfIFaEJU8f6wvjSxrDopDYW9gGZE45Lc4RdeNx12UWSp_DxKQHhK_0cNSW8l7hXBT2ubeeH7Zu6/s1600/Screenshot.png"><img style="cursor:pointer; cursor:hand;width: 400px; height: 137px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUbOJz9xmbkkxJSaRfXTAEZs1A-IfgQaaBi7JeW0qsuvOV6LNskYbqD0ci1gtGa2viPrfIFaEJU8f6wvjSxrDopDYW9gGZE45Lc4RdeNx12UWSp_DxKQHhK_0cNSW8l7hXBT2ubeeH7Zu6/s400/Screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5621243368807768162" border="0" /></a><br /><br />Detail(4) Gparted partitioning SD Card<br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWvtC1z8DPS7mQY3g1c5PeVEqZaUwui3T9r4mbGAnXj8wxWkKZPLiLVUY4cNac-0aNYT-UK257NA20Ny9mhJ_0Uo3pOl86mHA2rTLTG8UHp2qwOSnfwhVud1xwL_j_I6mVNZk9g4cq4uTP/s1600/Screenshot-2.png"><img style="cursor: pointer; width: 400px; height: 270px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWvtC1z8DPS7mQY3g1c5PeVEqZaUwui3T9r4mbGAnXj8wxWkKZPLiLVUY4cNac-0aNYT-UK257NA20Ny9mhJ_0Uo3pOl86mHA2rTLTG8UHp2qwOSnfwhVud1xwL_j_I6mVNZk9g4cq4uTP/s400/Screenshot-2.png" alt="" id="BLOGGER_PHOTO_ID_5596774552636337138" border="0" /></a><br /><br />Detail(5) : Card Trick FAT16 format on SD Card<br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-AOmiviXKFVpI3vfAtLtUSlE5ILeoXpjvG4xJaPEquSTG1lO0GRMYrmH6CJyvae-RIl39utmSAwO-XLH9mGbP8IFq4oN6_V3jIGL9oSd_P_8lOo0-LycEEbc639x_f8DoOZT19Fi92eBn/s1600/CardTricks.jpg"><img style="cursor: pointer; width: 400px; height: 276px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-AOmiviXKFVpI3vfAtLtUSlE5ILeoXpjvG4xJaPEquSTG1lO0GRMYrmH6CJyvae-RIl39utmSAwO-XLH9mGbP8IFq4oN6_V3jIGL9oSd_P_8lOo0-LycEEbc639x_f8DoOZT19Fi92eBn/s400/CardTricks.jpg" alt="" id="BLOGGER_PHOTO_ID_5596786244331201410" border="0" /></a><br /><br />Detail(6) Formatting card into FAT16<br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyyAiEi6BpBMtYJbEHmxgyFynjFWRuqfaO2WiuB8K2brTcylrH7sBEsxrnq_UyS85bk8fa9pPCviNmgtvKnCxUwhm1HxNZPxi6tIhzGpcxkskAqlWhkTv3_Ps8zBiqny26XezbMh9S1YFy/s1600/Screenshot-1.png"><img style="cursor:pointer; cursor:hand;width: 400px; height: 249px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyyAiEi6BpBMtYJbEHmxgyFynjFWRuqfaO2WiuB8K2brTcylrH7sBEsxrnq_UyS85bk8fa9pPCviNmgtvKnCxUwhm1HxNZPxi6tIhzGpcxkskAqlWhkTv3_Ps8zBiqny26XezbMh9S1YFy/s400/Screenshot-1.png" alt="" id="BLOGGER_PHOTO_ID_5621244062588042338" border="0" /></a><br /><br />Detail(7) Canon G11 is now Hacked!<br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiO1m5fSDkk4GOJYCN4vtzbefFgPoObHLvEa3Ouzyp57hmlzr0tuQuP0GFS7sHENjH2oR4Uv42MisADLFKAyBfPm3d00H2LW9UiqnGAiXA-hs0MO1MEG_W4RhO1M-1ovX5E_xRNmlJ2Dip8/s1600/IMG_0181.JPG"><img style="cursor: pointer; width: 400px; height: 300px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiO1m5fSDkk4GOJYCN4vtzbefFgPoObHLvEa3Ouzyp57hmlzr0tuQuP0GFS7sHENjH2oR4Uv42MisADLFKAyBfPm3d00H2LW9UiqnGAiXA-hs0MO1MEG_W4RhO1M-1ovX5E_xRNmlJ2Dip8/s400/IMG_0181.JPG" alt="" id="BLOGGER_PHOTO_ID_5596794994942551506" border="0" /></a><br /><span style="font-weight: bold;"><br />Remarks:</span><br /><div style="text-align: justify;">As I've mentioned a while ago , I have two ideas in mind :<br />The first is the <span style="font-weight: bold; color: rgb(51, 51, 255);">USB/PTP</span> encoded in <span style="font-weight: bold; color: rgb(153, 0, 0);">CHDK </span>but need to wait first for the hacking release ,Yet a Canon SX200IS had the code ported already so possible for the Canon G11 also.Whatever, the other method plugging in /out or switching ON/OFF will be much more easier to accomplished for now compared to the latter method(we'll see if there's a ported code already for G11).<br /></div><br /><br /><span style="font-weight: bold;">Conclusions:</span><br />Still on goingE^3http://www.blogger.com/profile/05952379906468956430noreply@blogger.com6