-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
118 lines (98 loc) · 4.15 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
---
layout: default
title: Zorg - A Python framework for robotics and physical computing
---
<div class="container image-divider"></div>
<div class="container" style="position: relative; top: -135px; margin-bottom: -135px;">
<div class="row">
<div class="col s12 l3">
<div class="zorg-logo">
<img src="img/zorg.svg" class="responsive-img" style="width: 100%"/>
</div>
</div>
<div class="col s12 l9 card-content" style="padding-top: 130px;">
<h4 class="header light center">
Zorg is an <strong>extensible</strong> robotics framework designed for the
<strong>Internet of Things</strong>
</h4>
<div class="center">
<a href="/platforms/" class="btn-large red darken-4 z-depth-3">
Get Started
</a>
</div>
</div>
</div>
</div>
<div class="container" style="border-bottom: 1px solid #ddd;">
<div class="row">
<div class="col s12 m7">
<h4>Configure your robots with Zorg!</h4>
<p class="flow-text">
Zorg is a Python framework for robotics, and Internet of Things projects.
It makes it easy to configure and control your projects by allowing you to write less code while building better robots.
<p>
<p class="flow-text">
Zorg runs on a variety of platforms, including the <a href="http://www.intel.com/content/www/us/en/do-it-yourself/edison.html">Intel Edison</a> and the Raspberry Pi. Zorg supports a wide variety of hardware components, including various analog and digital sensors that come in the <a href="http://www.seeedstudio.com/depot/Grove-starter-kit-plus-Intel-IoT-Edition-for-Intel-Galileo-Gen-2-and-Edison-p-1978.html">Grove Starter Kit</a>. Adding support for new platforms and devices is simple thanks to Zorg's modular design.
<p>
<p class="flow-text">
<img src="img/edison.jpg" class="valign responsive-img" style="width: 100%"/>
</p>
</div>
<div class="col s12 m5">
<pre class="spacer2"><code class="language-python">
import time
import zorg
def move_servo(my):
angle = 0
while True:
my.servo.set_angle(angle)
angle += 45
if angle > 135:
angle = 0
time.sleep(0.1)
robot = zorg.robot({
"name": "Zorg",
"connections": {
"edison": {
"adaptor": "zorg_edison.Edison",
},
},
"devices": {
"led": {
"connection": "edison",
"driver": "zorg_gpio.Servo",
"pin": 5, # Digital/PWM pin 5
},
},
"work": move_servo,
})
robot.start()</code></pre>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div clas="col s12">
<h2>Building Robots with Zorg</h2>
<p class="flow-text">
Zorg is written in Python, so it's easy to leverage other
awesome science libraries written in Python such as
<a href="http://www.numpy.org/">Scipy</a>, and
<a href="http://scikit-learn.org/">Scikit Learn</a> to integrate
amazing features into your project! Interested in creating web
apps to control your robots? Checkout our
<a href="#">Web API documentation</a>.
</p>
<p class="flow-text">
Zorg wraps the <a href="http://iotdk.intel.com/docs/master/mraa/">MRAA</a>
library created by Intel for interacting with IO pins on the Edison microcontroller.
While the Python bindings for mraa work great on their own, the benefit of Using
Zorg is that we have already created many of the drivers you
needed for using sensors and output devices. Zorg also
implements multiprocessing so that tasks such as reading and
writing from sensors are non-blocking, allowing you to take full
advantage of multi-processor boards like the Intel Edison.
</p>
</div>
</div>
</div>