Compare commits

...

3 commits

Author SHA1 Message Date
d45c7951ec WIP hot glue bump tutorial 2024-04-30 17:18:59 -04:00
fa5243aa08 servo specific spin chirality 2024-04-30 17:16:23 -04:00
8624a0d139 enter = all up 2024-04-30 17:15:42 -04:00
3 changed files with 26 additions and 5 deletions

View file

@ -36,3 +36,12 @@ sudo chmod 666 /dev/ttyUSB0
[StereoNick](https://twitter.com/koujaku)
[Peter Sassaman](https://twitter.com/PeterSassaman)
[Lucas De Bonet (LucidVR)](https://twitter.com/VrLucid)
### WIP hot glue bump tutorial
1. reset the device *press enter key and disconnect power
2. align where the bump will be with gravity and generally aim the glue gun opposite gravity
3. get coverage starting from the top *wrapping the glue around the screw head
4. end with the glue you need for the bump before lifting up and off to round it out
5. use the side of the nozzle to reshape as needed

View file

@ -12,12 +12,13 @@ char in_char = ' ';
struct ServoPin {
Servo servo;
int pin;
int spin; // -1 left, +1 right
};
ServoPin servos[6] = {
{Servo(), 14}, {Servo(), 5},
{Servo(), 12}, {Servo(), 4},
{Servo(), 13}, {Servo(), 2} // 19 and 21 are untested
{Servo(), 14, +1}, {Servo(), 5, -1},
{Servo(), 12, -1}, {Servo(), 4, +1},
{Servo(), 13, +1}, {Servo(), 2, -1} // 19 and 21 are untested
};
// braille alphabet
@ -37,6 +38,11 @@ std::unordered_map<char, BrailleChar> braille_map = {
0, 0,
0, 0
}}},
{'\n', {{
1, 1,
1, 1,
1, 1
}}},
{'a', {{
1, 0,
0, 0,
@ -243,8 +249,8 @@ void loop() {
BrailleChar bc = braille_map[in_char];
for (int i = 0; i < 6; i++) {
int state = bc.servo_states[i];
int s = i % 2 == 0 ? state : (1 - state);
servos[i].servo.write(s * 180);
int spin = servos[i].spin < 0 ? (1 - state) : state;
servos[i].servo.write(spin * 90);
}
old_char = in_char;

View file

@ -26,6 +26,11 @@ public class Mono {
0, 0,
0, 0
} },
{ '\n', new int[] {
1, 1,
1, 1,
1, 1
} },
{ 'a', new int[] {
1, 0,
0, 0,
@ -370,6 +375,7 @@ public class Mono {
KebKey[] keb_keys = new KebKey[] {
new() { key = Key.Space, char_ = ' ' },
new() { key = Key.Return, char_ = '\n' },
new() { key = Key.A, char_ = 'a' },
new() { key = Key.B, char_ = 'b' },
new() { key = Key.C, char_ = 'c' },