farmbot_os/README.md

99 lines
3.1 KiB
Markdown
Raw Normal View History

2014-01-12 11:54:11 -07:00
farmbot-controller
==================
2014-01-12 11:58:55 -07:00
This software is responsible for receiving the commands from the 'farmbot cloud backend', execute them and report back the results.
Technicals
----------
* Written in Ruby
2014-05-07 14:25:51 -06:00
* Data is stored in sqlite 3
2014-01-12 11:58:55 -07:00
* Running on Raspberry Pi
2014-05-07 14:25:51 -06:00
* Sends commands to hardware using firmata (soon to be replaced with g-code)
2014-01-12 11:58:55 -07:00
* Hardware is an Arduino Mega with a RAMPS 1.4 board
2014-05-07 14:25:51 -06:00
* Communication with cloud using skynet (machine instant messaging)
2014-01-15 15:14:52 -07:00
Prerequisits
============
2014-01-25 14:22:40 -07:00
Raspberry PI
2014-01-15 15:14:52 -07:00
------------
Update the RPi, install ruby, firmate and the arduino IDE
sudo apt-get update
sudo apt-get install git-core
2014-05-19 01:59:58 -06:00
sudo apt-get install ruby-dev
sudo apt-get install sqlite3-dev
sudo apt-get install arduino
2014-01-15 15:14:52 -07:00
2014-05-19 01:59:58 -06:00
retrieving code from github:
2014-01-15 15:14:52 -07:00
2014-05-19 01:59:58 -06:00
git clone https://github.com/FarmBot/farmbot-raspberry-pi-controller
2014-01-15 15:14:52 -07:00
2014-05-19 01:59:58 -06:00
prepping ruby:
cd farmbot-raspberry-pi-controller
2014-02-13 14:04:39 -07:00
'bundle install --without test development' from the project directory
OR
'bundle install' (for developers)
2014-01-15 15:14:52 -07:00
2014-05-19 01:59:58 -06:00
rake db:migrate
2014-01-15 15:14:52 -07:00
Arduino
-------
2014-05-19 01:59:58 -06:00
git clone https://github.com/FarmBot/farmbot-arduino-controller
2014-01-15 15:14:52 -07:00
Start the arduino IDE in the graphic environment under the start menu / programming / Arduino IDE
Open File / Examples / Firmata / StandardFirmata
Upload to the arduino
Usage
=====
2014-06-19 15:36:10 -06:00
Use "ruby farmbot.rb" to start hardware control and skynet communiation
2014-01-16 01:30:43 -07:00
Use "ruby menu.rb" to start the interface. A menu will appear. Type the command needed and press enter. It is also possible to add a list of commands to the file 'testcommands.csv' and use the menu to execute the file.
2014-01-15 15:14:52 -07:00
2014-08-27 15:34:03 -06:00
To change parameters manually, edit the file "write_db_settings.rb" and run the command "ruby write_db_settings.rb"
2014-09-20 14:12:54 -06:00
Duriing running in the console, a few basic staatus parameters are displayed:
x 0000 *- y 0000 -- z 0000 *-
For each axis, the coordinates are shown and the status of the end stops. A "-" means the end stop is not activared, a "*" means the and stop is activated. First the home end point is displayed, then the end-of-line end stop.
2014-02-13 14:04:39 -07:00
Author
------
* Rick Carlino
* Tim Evers
License
-------
The MIT License
Copyright (c) 2014 Farmbot Project
2014-01-15 15:14:52 -07:00
2014-02-13 14:04:39 -07:00
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
2014-01-15 15:14:52 -07:00
2014-02-13 14:04:39 -07:00
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
2014-01-15 15:14:52 -07:00
2014-02-13 14:04:39 -07:00
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2014-05-07 14:25:51 -06:00