Axoloti and sensors


#10

That's mostly the same code any Arduino example uses with that sensor.
Converting that sketch probably won't work at the moment. I've looked through the Axoloti firmware and didn't find any function similar to the delayMicroseconds().

Guess I'll be using one of those Sharp IR distance sensors since they will work out of the box.
https://www.adafruit.com/products/164


#11

Arduino promotes a lot of bad practice in my opinion. DelayMicroseconds() burns away time without making it available to other processes. Arduino does not have "threads". Fine for simple things but unsuitable for more complex things.

There is chThdSleepMicroseconds but this is not the right approach. To get more or less deterministic timing at microsecond level it 'd require to use the highest priority level.

The right way to do it, is to use a hardware timer to produce the start trigger pulse and measure the incoming pulse length, without using any processor cycles for the time measurement. But these sort of tricks are hard to abstract from the underlying hardware, the full documentation of all the timers spans over 180 pages in the processor reference manual.

Anyway, those sharp IR distance sensors are way better than ultrasonic distance sensors, the ultrasonic sensor will have a slow update rate, and likely disturbed by nearby sound sources.


#12

I decided to ditch the ultrasonic sensors. They are really cheap, but not worth spending hours trying to make them work.

My sharp IR distance sensors arrived today, and they are really responsive. Took me 15 minutes to build a basic theremin.


#13

hej janvantomme! Is your book already available? I'm trying to connect a simple physical button to toggle mod_Organs simpleLooper Patch and I just can't figure it out. I'm sure it very basic knowledge and probably covered in there.


#14

ah and just to make it clear, its rather a question of what to do in the patch. So far I used gipo/digital/in and connected it to a disp/kscope 128p trig, but it doesn't show whether the button is pushe or not. (in arduino it works withe the hardware connections). Apparently I also can't just change the ctr/toggle to a digital in. I can turn it into a ctr/button but still i can't map that to the digitil/in. also tried the convert a to b...


#15

The first five chapters of my book are available on leanpub https://leanpub.com/getting-started-with-axoloti/.

You can find more information in this topic: https://sebiik.github.io/community.axoloti.com.backup/t/getting-started-with-axoloti-the-book/122.

I'm still writing the chapter on connecting LEDs, buttons and sensors, so it's not covered in the book yet. This chapter will be available by the end on January.


#16

The kscope and scope objects are useful to display waveforms, not to see if a button is pushed. You can use a disp/bool object for this. The mode of the gpio/in/digital object should be set to pulldown.

Circuit connections for this patch:

  • VDD is connected to first leg of the button.
  • PB0 is connected to the second leg of the button.

#17

Ah! thanks!! Apparently I also can't just change the ctr/toggle to a digital in. I can turn it into a ctr/button but still i can't map that to the digitil/in. also tried the convert a to b... sorry to bother with stupid basic questions. but I'll definitely get your book!


#18

exciting stuff here. has anyone tried ultrasonic sensors yet? or PIR motion sensors? is there maybe a list somewhere of compatible sensors?

i see in the book there is some good information on how to patch with the distance sensors, im just wondering about other hardware (voltage etc)


#19

Ultrasonic distance sensors might work, but they will require a script or custom object.

PIR motion sensors may be handy when you use Axoloti as a standalone interactive audio installation, but don't have any value when using it as an instrument, since they only act as a pushbutton when motion is detected.


#20

Hi, I didn't want to start a new thread, so I'm completing this one

I'm wanting to make a new ribbon controlled axoloti, and I was wondering if any of you have ever tried these sensors.

500mm position sensor

600mm pressure sensor

3 axis accelerometer

I'm thinking of mounting the two ribbons, one on the other just like this arduino project

here is a quick sketch of the intrument

Talking about sensors, I'm also thinking about creating a clock from my heart beat. The simplest way I've found (unless someone tells me it wouldn't work), would be using this pulse sensor plugged into an analog Gpio and filtered / converted into a square wave LFO using a simple ">c" object.

Does anyone see anything that could go wrong is the component and simple interfacing (directly into the Gpio's, sometimes with resistors) with the axoloti board ?

Thanks in advance


4 - 5 November 2016 - radical dB showcase - Zaragoza
#21

For the SpectraSymbol position sensing ribbon, check this thread https://sebiik.github.io/community.axoloti.com.backup/t/softpot-ribbon-controller/902/3 it's actually duo-touch if you wire it up the right way.
The Interlink pressure sensor, I belief is a common component in keybeds to sense channel pressure. The Doepfer ribbon is also a stack of the SpectraSymbol ribbon and the Interlink FSR I believe.
The accelerometer looks fine too. In terms of interaction, gyroscopes are more interesting than accelerometers, but that is just my opinion, consider a 3 axis accelerometer + 3 axis gyro sensor module, though it seems those modules do not have analog outputs but need to be interfaced through SPI or I2C.
The pulse sensor, the way they soldered wires to that board (on surface mount pads) looks fragile to me, stress on the wires could easily lift the solder pads from circuit board, so handle with care. Other than that, looks great.


#22

Thanks a lot Johannes, I now understand the double touch trick, very interesting indeed and well more than I expected.
I also saw that the pulse sensor looked a bit fragile, but I can see myself solidifying it as well as attaching the wire to some ear piece so that the weight of it doesn't pull my ear off (I need to keep my hands free).
Anyway, I think October will be a augmented sensor month for me, if I don't waste too much of my time in fire wood cutting (winter is approaching).

Thanks for everything, once again


#23

i used four softpots for my bass-guitar like midi controller. see below... i also wired them in double touch, but only measure the "top" position. that way i can do hammer on and pull offs like on a real bass...


#24

Great project lokki, must be a blast to play
I just received my softpot today, so I'll be testing it, while trying to understand the maths in @johannes demo axoloti patch.
I read about some people that damaged the ribbon by miss wiring it somehow. Does anyone know what I must NOT do ?


#25

it is a blast, i'm still exploring all the possibilities! it's so reactive to touch (the fsr side) just great to modulate sounds. i will post soundsamples at some point, made with the axoloti of course! regarding your question, i did read those comments as well. i think they mostly concern the round softpots (look like a pot) and the standard wiring with ground and v+ on the outer terminals and reading in the middle. if you would press the softpot both in maximum and minimum position, you could create a "short" and the pot would heat up. this will not happen with the wiring i and johannes use.


#26

Hi ... I'm thinking of using the Sharp GP2Y0A60SZ which I can't tell if this is the one you are connecting there. Its specs claim that a range of 10-150 cm .... Are you using a specially tuned object to interpret the signal in the Axoloti patcher? Any further advice on using this analog distance sensor? Thanks for sharing your project


#27

Hi lokki and mtyas,

Lokki, what do tou mean when you say "this will not happen with the wiring i and johannes use".

And mtyas, i saw that you finally finished your ribbon synth. Can you share more information about the final setting (double-touch solution, etc.).

Thank you very much in advance


#28

there are basically two different methods to wire a soft pot to measure position, either you connect 5v and ground to the outer two connectors and measure at the middle point, or you do it this way:

http://www.ooooo.be/devices/ribbon4/ribbon4.htm
look under "better multi touch version" for the wiring.

hope this helps.


#29

I'm using the Sharp GP2Y0A21YK0F sensor, connected to 5V, GND and one of the analog GPIO pads. Sensor has a range of 10 to 80cm.

No need for special objects, but you may want to invert the signal in some cases because it makes more sense for controlling sound.

The sensor you are mentioning will probably work in the same way.