Skip to content

Commit 1322f3e

Browse files
authored
Merge pull request #57 from runger1101001/osc_dev
Comprehensive OSC example on ESP32
2 parents cfa2dc6 + 7a3b2a0 commit 1322f3e

File tree

5 files changed

+767
-0
lines changed

5 files changed

+767
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
# OSC control examples
3+
4+
OSC - opensoundcontrol.org is a simple message exchange protocol. Widely used in the Audio world it is being hailed as the successor to MIDI. But MIDI itself, and now OSC, has always been about sending and receiving fairly simple control messages, at medium speed, and that makes it well suited for the same kind of task in robotics or other control applications.
5+
6+
As a protocol it is simple, making implementation quite easy, and while binary, simple enough to be fairly "human readable", which aids in debugging and reduces errors.
7+
8+
The main advantage of using it is that there is a bunch of ready made software, and also libraries to use in your own programs, neaning you don't have to re-invent these things from scratch.
9+
10+
## TouchOSC
11+
12+
The first example shows how to set up control of a motor from TouchOSC. It's a super-fast way to set up a customizable GUI for your motor-project, that runs on your phone...
13+
14+
## purr-Data
15+
16+
The second example, "simplefoc\_osc\_esp32\_fullcontrol.ino" allows setting the variables and tuning the motor parameters, in the same way as the serial control but via OSC. The file "osc\_fullcontrol.pd" contains a sample GUI to go with that sketch, allowing the control and tuning of 2 BLDC motors.
17+
18+
Here a screenshot of what it looks like in purr-Data:
19+
20+
![Screenshot from pD](osc_fullcontrol_screenshot.png?raw=true "pD controlling 2 BLDC motors")
21+
22+
23+
## Links to software used in examples
24+
25+
- OSC - opensoundcontrol.org
26+
- pD - https://puredata.info
27+
- TouchOSC - https://hexler.net/products/touchosc
28+

0 commit comments

Comments
 (0)