=<span style="font-size: 1.4em; line-height: 1.5;">Using an Arduino as a slave board</span>= =<span style="font-size: 1.4em; line-height: 1.5;">Arduino serial interfacing and basic function library (This </span><span style="font-size: 25.480001449585px; line-height: 38.2200012207031px;">article</span><span style="font-size: 1.4em; line-height: 1.5;"> is a work in </span><span style="font-size: 25.480001449585px; line-height: 38.2200012207031px;">progress</span><span style="font-size: 1.4em; line-height: 1.5;">)</span>= //By Mike Molianri// [[image:Me.png]] ---- =Home automation, Robots, Vending machines. What do they have in common?= The answer is computers controlling hardware. Making lights go on and off. Controlling motors, relays and other electronic components. Liberty Basic for windows makes programming simple but lacks the ability to directly control or interface with hardware (except the parallel port). To make hardware interface coding simpler a set of functions is required to facilitate the communication with external hardware. Because the arduino is the most widely used hobby micro controller in the world and has so much support I wanted to make it simple for LB users to take advantage of this great platform for there projects. The things covered in this article are limited to simple port I/O (Input and output). * <span style="line-height: 1.5;">Test if pin is high or low</span> ** <span style="line-height: 1.5;">Get input from buttons and other sensors connected to the arduino</span> * <span style="line-height: 1.5;">Set a pin high or low</span> ** <span style="line-height: 1.5;">Turn things on and off like lights, buzzers, motors, ect.</span> * PWM (Pulse width modulation) output ** Dim lights, Control servo motors, interface with variable speed motor controllers * PWM <span style="line-height: 1.5;">(Pulse width modulation) input</span> ** <span style="line-height: 1.5;">Get input from things like sliders and position information</span> [[toc|flat]] =Second Part Title= Text here.=The Arduino Code= To make liberty basic talk with an arduino they have to speak the same language. In this case a string is used and send over to the device followed by a carriage return character CHR$(13) The only thing you really have to understand about the arduino code is that it must be download to the arduino board using the arduino IDE. This can be download from the following link. http://arduino.cc/en/Main/Software [[code format="lb"]] 'code here [[code]] =Third Part Title= Text here. [[code format="lb"]] 'code here [[code]] ---- [[toc|flat]]