Eagle SCH and BRD

IMG_0260.jpg

^ (Project using Beetle board instead of custom PCB)

Custom PCM Eagle files and PDF: https://github.com/hellonun/homemade_hardware/tree/master/slide_pcb

Questions:

  • Do we need to connect GND and VDD on each side of the chip together?
  • How much warning is allowed regarding the wire touching (the pins on the chip already has warning)
  • What are the 5×2 pads on the sides of the micro USB? Are they to lock the cable? Or should they be connected to something?

NOTE: the 3 headers are to connect to the slide // I tried to model the slide but doing it this way saves space because the USB connector is at the same spot as the pins on the slide

Screen Shot 2563-04-18 at 18.49.56.png

(Maybe I want to make cut-corner edges to make them fitted to the wood/acrylic underneath)

This is the sketch of each layer of the device. The PCB in this case will replace the Beetle board (at the bottom).

IMG_9152.JPG

Once assembled, the device will look like this

(SIDE VIEW)

IMG_0173.jpg

(PERSPECTIVE VIEW)

IMG_0172.jpg

IMG_0267.jpg

1CCCBFCC-7AA0-4EF9-960C-3CDF4DCA5183.JPG

OSC MIDI + Waiting for Parts + Experiment

  1. OSC MIDI

MIDI –> OSC –> Digital Ocean Server –> MIDI –> Ableton

Documentation

Even though this worked, to not have to do the wifi set up for my case, it may be better to use webmidi directly i.e. slides act as standalone MIDI instrument like a keyboard.

2. Waiting for parts

Beetle boards x 8. The board is $3.95 each!

Beetle - The Smallest Arduino Board with bluetooth 4.0

https://www.dfrobot.com/product-1075.html

3. Sidetrack experiment: slides control movement

Slides –> MIDI

This week I focused on getting the slides to behave as I want on screen i.e. move smoothly, no glitches or jumpes, no delays.

Problems:

  1. The linear slides were acting like logarithmic slides (this took me almost the whole day to solve, the problem was the breadboard)

    How it should behave…
    Screen Shot 2563-04-03 at 10.00.15

    How it was behaving…
    Screen Shot 2563-04-03 at 10.01.53

    Once I realized the issue, I had a funeral for the breadboard
    IMG_9773.jpg

  2. It was so glitchy! All the values kept jumping

    EXPERIMENT 1: To solve this I tried the Kalman filter. However, the side effect of the filter is a ‘lag’ as the value jumps from one to the next because the filter tries to smoothen the values.
    (Change 100 to 127 to fit MIDI scale)Screen Shot 2563-04-07 at 18.18.55.png

    EXPERIMENT 2: Track the magnitude of change in the sensor value. If the change is greater than 2, count it as change, otherwise don’t. Since the steps of the digital slides were quite few (less than 127), this worked fine and the results of the movements were smooth.

    Screen Shot 2563-04-07 at 18.19.29.png

    EXPERIMENT 3: Although the movement transition between physical slide to digital slide is now smooth, sometimes when still, the slides are still glitching. This had to be a wiring effect so I built fitted box prototype of the slides to sit on.

    IMG_9785.jpg

    IMG_0116.JPG

    IMG_9783.jpg

So I got the desired movements in the end:

Next week: focus on the programming

Links to get started on:

IMG_9588.JPG

Homemade Hardware Update

Prototyping board

Beetle - The Smallest Arduino Board with bluetooth 4.0

https://www.dfrobot.com/product-1075.html

Chip ATMega32U4 (big pins)

ATMEGA32U4RC-AUR Microchip Technology | ATMEGA32U4RC-AURCT-ND DigiKey Electronics

https://www.digikey.com/product-detail/en/microchip-technology/ATMEGA32U4RC-AUR/ATMEGA32U4RC-AURCT-ND/2774248

Slides

WMYCONGCONG 10 PCS 10K Ohm Slide Potentiometer Single Linear 10K Electronic Potentiometer, 88mm

https://www.amazon.com/gp/product/B07QVQ67MV/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1

I had a problem with the slides because they turned out to be logarithmic instead of linear. I am still trying to figure out the algorithm to fix this.

What it looks like …

Screen Shot 2563-04-03 at 10.01.53

What it’s supposed to look like …

Screen Shot 2563-04-03 at 10.00.15

https://www.amazon.com/gp/product/B07QVQ67MV/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1

https://www.amazon.com/gp/product/B07QVQ67MV/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1

Other than fabricating the board. I’ll also be working on the synchronous web instrument next week.

Notes for parts

ATSAMD11C14 vs ATMega32U4?

Both native USB

ATSAMD11C14 (32 bit): less pins, low memory, faster, easier to solder, need J-link to program
J-link https://www.digikey.com/product-detail/en/segger-microcontroller-systems/8-08-91-J-LINK-EDU-MINI/899-1061-ND/7387472

ATMega32U4: more pins, higher memory, slower, difficult to solder, directly program
Bigger pins ATMega https://www.digikey.com/product-detail/en/microchip-technology/ATMEGA32U4RC-AUR/ATMEGA32U4RC-AURCT-ND/2774248

Other parts and lead free solder @digikey

Tactile Fantasy, Unlearning the Keyboard

IMG_9342.jpg

 

606328646.050434.JPG

IMG_9154.jpeg

 

I started off this project with a vague objective to explore the relationship between the sense of touch on an HID controller and its corresponding visuals and sounds on a computer. The questions I had starting off the project were: must keyboards be so flat and modular? Must the interactions be so 1:1? Must each keystroke always be a command?

What if all these expectations were more loose?

Specifically, the questions I was trying to answer were:

  • How do I make the experience more of an exploration of the control as opposed to a control which I have to figure out how to use?
  • How do I take the sensations on the controller and create different modes of interactions on the screen / the speakers? e.g. unison, call and response, random etc.

UNLEARN THE IDEA OF A KEYBOARD!

PHASE I: Ideation – a keyboard with an internal life

https://hellonun.blog/2020/02/19/keyboard-controls/

IMG_8757.jpeg

 

PHASE II: Prototyping – tactilefantasy.js

Fabrication https://hellonun.blog/2020/02/26/keyboard-controls-update/

IMG_8929.jpeg

Inspiration (reading) https://hellonun.blog/2020/03/01/keyboard-control-inspiration/

Software testing

During this step I play-tested with 6-8 people. For me personally, the prototype was already working as an ‘explorative experience’. However, only 1 out of the 6-8 people agreed. The others were mostly confused. The key takeaways for me at this stage were:

  • Positions of the buttons matter more than their shapes/heights
  • There is a very strong need for any kind of immediate feedback after pressing a button

Version 1 ‘visual, sound, text’ (fixed keys)

https://editor.p5js.org/nt1475@nyu.edu/sketches/P4ahHegq

Use the following keys to control

[‘a’, ‘s’, ‘d’, ‘f’]; // words
[‘z’, ‘x’, ‘c’, ‘v’]; // sounds
[‘q’, ‘w’, ‘e’, ‘r’]; // animation
[‘1’, ‘2’, ‘3’, ‘4’]; // brightness

Version 2 ‘visual, sound, text’ (random keys)

Use the following keys to control

[‘1’, ‘2’, ‘3’, ‘4’, ‘q’, ‘w’, ‘e’, ‘r’, ‘a’, ‘s’, ‘d’, ‘f’, ‘z’, ‘x’, ‘c’, ‘v’];

https://editor.p5js.org/nt1475@nyu.edu/sketches/TJWCnf8J

Version 3 ‘text, sound’

https://editor.p5js.org/nt1475@nyu.edu/sketches/k56YURlO

Use the following keys to control

[‘a’, ‘s’, ‘d’, ‘f’]; // words
[‘z’, ‘x’, ‘c’, ‘v’]; // sounds

PHASE III: Final fabrication + experiments

Fabrication

Applying the learning from prototyping

  • Increase size of buttons – the smaller ones were almost like pins poking into fingers.
  • Make positions less rigid and more freeform – make it say to users “be more playful! stop using the prefrontal cortex! stop trying to figure out how it works!”
  • Hide everything underneath – users were distracted by wires

Knowing how the wiring works already, I entered this phase by working on the enclosure. I wanted to learn how to powder coat so I got the steel conduit boxes to try. (more on https://itp.nyu.edu/fab/device-design/week-4-pre-assembled-boxes/, thank you Ben!)

The design, layer by layer

IMG_9316.jpg

Prepare all the tools: powder coating gun + machine, powder, clamps + pliers, wire for hanging

IMG_4978

Started off by heating the boxes in order to get rid of the oils. After heating, use scotch brite to scrub the surfaces.

IMG_0895 2

Hang the clean boxes on the rod

IMG_3287

Charge the rod (and the boxes) + spray! … did not get a photo of spraying.

IMG_4394

Put them in the oven again to let the powder sit. And viola!!! (Ben and I did this a few times because the new machine did not work and the powder did not stick to the surface, we ended up using the old gun).

IMG_9315.jpg

Now time to make the top part. I started measuring the box and tried cutting cardboard pieces on the laser cutter to determine the actual size.

IMG_9313.jpg

After finding out the size, I then designed the acrylic cover and the PCB underneath.

I ended up cutting both of these on the mill because the laser cutter was closed due to COVID-19. This was my first time milling acrylic! (Also, first time making an Eagle part)

Screen Shot 2563-03-16 at 18.09.36.png

Screen Shot 2563-03-24 at 14.34.19.png

Screen Shot 2563-03-25 at 11.07.40.png

The shape makes the copper look more like rose gold 😀

IMG_9116

I was happy with how precise and fitted these buttons were on the surface. This saved me a lot of time – I didn’t have to wire much after this.

IMG_9117

Of course, given they’re the same file, the acrylic was also perfectly fit (for most parts! I didn’t put the acrylic sheet on the machine properly and the bottom was cut off! luckily no bits were broken).

IMG_9123

After that I wired it to my old perf board which I used for the prototype. Had to add the legos inside there to support the panel. I didn’t think through well enough about how to attach everything. Also, the holes on the pcb I made to attach to the box were too small and I didn’t know how to increase the size on Eagle, fix next time!)

IMG_9147

After wiring everything, I finally plugged it on to the computer and tested the buttons with the serial monitor. Of course this took a few rounds of debugging and finding the right button / pins.

Here are the pin layouts and mapped keys! I color-coded them according to their heights in order to program easily after this.

Screen Shot 2563-03-24 at 10.30.17.png

 

Experiments with softwares!

I got sidetracked into texts, fancy visuals and rhythms during prototyping stage. Looking back at my original objective, I started exploring with the initial idea again.

First off, creating the same visual on the screen (using Bang object on maxmsp)

I then tried to map the visuals according to the height of the buttons. The lower, the darker.

Other combinations:

Screen Shot 2563-03-24 at 00.55.25.png

I then took the same circle pattern and built a mosaic-like visual. This was very satisfying even without sound. To visualize the tactile effect on a grand scale.

Inspired by the grand-ness of the previous experiment. I tried to make a whole wall of push-buttons. At this point I believed this was much more of a playful / exploratory experience and I had already lost the need to figure out what’s going on. The sounds on here are sound I pre-recorded with other buttons and switches: rotary encoder, missile launch switch, arcade button, toggle switch and push buttons.

If I could show this in class, I would have mounted the controller on a tripod, similar to a microphone. People can go up to it and play however they like.

IMG_9342 2.jpg

Imagine this:

340d1582-c754-4b1b-9ef7-9a034c9c111c.JPG

I then tried to experiment more with direct sound mapping. With high quality sounds, the experience felt very surreal; expecting one sound but getting another. I think this could work very well if I had noise cancelling headphones (can’t hear the actual buttons at all but can only feel them).

Lastly, I wanted to take into account that people are very positional with their button placements. I modified Luke DuBois’s modular synth code to mimic the aesthetics of the buttons. Currently this is being controlled like arrows (left / right). I think if these were just holes on the synthesizers, it could be fun. (this is dismissing the heights of the buttons completely).

Code for modular synth: https://www.openprocessing.org/sketch/861829
Modified from: https://itp.nyu.edu/adjacent/issue-6/precisely-experimental-a-progression-of-analog-synthesizers/

Eagle board, Illustrator files, Arduino code, Max patches, all in here: https://github.com/hellonun/tactilefantasy

All in all I was happy to try a lot of new things on the fabrication side. I wish I had explored more on the modes of interaction through key combinations, delay in response – develop a more complex relationship between the pushbuttons and the results.

Idea: Final Project

Presentation slide https://docs.google.com/presentation/d/1i4MryEniZhbAhFP9ErM981HA3PtvgBQy70oJrNSaqNk/edit?usp=sharing

 

About the MIDI controller:
It’ll actually be 12-14 separate MIDI controllers for 12-14 people. Each one is just one slide potentiometer. Each one has its own channel. This will then be played through a synchronous web platform.
IMG_9367.jpg

The idea is to have 12-14 people controlling different slides from different physical spaces but same digital space.

About variable clock:

https://hellonun.blog/2020/02/06/tangible-interactions-test-blog/

Let ‘i’ PCB – Finished

This week we put the Eagle file to work!

Bantam setup: http://homemadehardware.com/guides/bantam-setup/

Bantam milling: http://homemadehardware.com/guides/bantam-milling-1/

CUTTING – Cutting my first Tiny PCB – this went quite smoothly with the help of Arnab. I only had to change the bit once as the design did not require the engraving bit (I’d made the cuts as thick as possible to ease the milling and the electrical flow).

CLEANING – After cleaning with Scotch Brite, the PCB was ready to be soldered on. I made sure the copper crumbs were not blocking any of the cuts.

IMG_8855.jpg

SOLDERING – I made a huge mistake here when putting solder paste on to the board. I put on too much solder connecting most of the LED and resistors all together! (mistake!) Of course this was cleaned once I realized.

IMG_8877.jpg

POWER TESTING – 2 of the LEDs did not come on (top left hand corner) and I had to re-solder those.

IMG_8879 2.jpg

CODING – Finally time to upload the code. At first I had used the jig and a separate power and ground source while trying to upload code on to the PCB. This caused issues because there wasn’t a common ground. (mistake!) After changing to powering by the same Arduino board as the one uploading the code, everything worked fine.

Sensor making – I sculpted another atTiny shaped sensor using a wire to use as the capacitive sensor (hanging off the bottom of the board). ***There are 3 atTiny’s here… can you spot all of them?***

Final output – after Andy placed all of them together …

7df93869-522d-40fb-96f4-45c9aa88d4fd.JPG

I hope my PCB works as an ‘i’!

Keyboard control inspiration

Image result for the eyes of the skin

“The Eyes of the Skin”

the role of the body as the locus of perception

do not incorporate the dimension of time

mentally significant processes of ageing

a kind of chilling de-sensualisation and de-eroticisation of the human relation to reality

//losing their sensuality

intellect and to the conceptualising capacities

sensory experience is unstable and alien to natural perception

//vision needs the help of touch, which provides sensations of solidity, resistance and protrusion

//the sense of touch as the unconscious of vision

moist air of Turner’s landscape

//the eye is the organ of distance and separation, whereas touch is the sense of nearness, intimacy and affection

//invite unconscious peripheral vision and tactile fantasy

in order to think clearly, the sharpness of vision has to be suppressed

the human eye is most perfectly tuned for twilight rather than bright daylight

//light has turned into a mere quantitative matter

a mere absence of the wall

sight isolates, whereas sound incorporates; vision is directional whereas sound is omni-directional

//carve a volume into the void of darkness

our cities have lost their echo altogether

time and space are eternally locked into each other in the silent spaces between these immense columns; matter, space and time fuse into one singular elemental experience, the sense of being

//the resistance of its weight and the patina of its wood surface scarred by decades of use

//furniture that forms a part of a person’s daily habitat

//most intimate contact with man

//spacing instead of space and timing instead of time

//remember the shapeless flow of reality

//recognise and remember who we are

continuum of culture and time