geth
-
Posts
25 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Gallery
Posts posted by geth
-
-
hi, just a short update:
Concerning the jittering: When I played around today I found out that the jittering is greater (probably like an unused open pot) without the 100nF capacitor on the connection of the yellow and the grey wire, I guess I was to tiered for proper testing...
With this cap solderd back the jittering is gone again, but when I wait long enough it comes again, I suppose this is because the otherside is not connected to ground, I will test that when I have more time.
Thanks for the replies, I totally forgot to check the outputvoltages :frantics: . I will definitly go for the software-correction of the 5%-problem in the custom code of my controller, so thanks for your clear instructions.
By the way, it seems intelligent to me to add a switch to each infrared sensor, to prevent unwanted triggering.
Greetings Geth
-
By using the lpc17Core's analog inputs, it is possible to connect a sharp infrared sensor, so that the distance between the sensor and maybe a hand is converted to midivalues.
The sensor:
Sharp 2D120x f 9z
around 10 euro (Watterott)
size: appr. 5x1x1cm
operating voltage: 5V
output: analog voltage
range: 4-30cm
Minimal setup:
Lpc17Core with midio128v3.006
SDcard (to enable the Ain)
I bought and additional cable which fitted in the sensors plug. As the sensor requires 5V to operate, its ground and source are connected to
J2, with and 100nF capacitor to reduce jittering. The analog output is connected to an analog input of the core (Note: there is a version of
the sharp which has a digital output).
Result:
I used the distance to control a value in Traktor (by a hand), it worked well, except the highest 5% of the values are unreachable, but this is not so problematic on the first run. I could achive higher values by using something more reflective as my hand, a paper. The jittering is lower than I expected, the value jumps approximatly every 5 seconds. The area in which the sensor will work is about 10cm diameter at a distance of 30cm to the sensor.
I hope this is usefull to someone, I had a lot of fun playing around with it and will use multiple sensors in my (traktor-)midicontroller.
Greetings Geth
-
After long hours of searching the problem systematically, I decided in an act of desperation to resolder every connection on the core and, well now its working. Yeah!
On the downside, I do not know where the mistake was (as I checked nearly all relevant connections via dmm I am still clueless).
Well, I should have bought an expensive soldering-iron from the beginning...
Greetings Geth
-
Hello everyone!
I built a lpc17 core and 2 DIN-Modules. I loaded the Midio128-Software on the core and connected one DIN-Module to the core.
Now only one connection for a button (the one between ground and D7 of the first block) of the DIN works. And when I connect this,
the core sends all 128 notes on (see atachment).
As in the DIN-Wiki, I suppose there is a problem with the latch-enable or the clock signal of the DIN's shift register.
For troubleshooting I checked the connections between the DIN's shift register and ground and 5V and the Lpcexpresso or the 20-pin IC of the core.
I tried with my second DIN-module, there I have the same problem. I checked for a unwanted connection between the latchenable and the clock line, there is none.
I ordered new ics (shift register, 16 pin and 20 pin ic), this did not solve my problem. I built a new cable, did not help either.
I suppose the problem must be in the core, but right now I don't know what I could do next. So I would be very glad if anybody knows or has ideas where or what problem I have.
Thank you in advance
geth
Infrared distance sensor
in Tips & Tricks
Posted
Hi, I found some time to check the sensor again.
So my current wireing is like this:
5+ Volt and ground from the sensor to J2 with a 100nF cap between them. And the sensor output to an Ain frome the core, with another 100nF cap between this and ground. Now the input is jittering, but this comes from the sensor, if I put my finger over the photodiode of the sensor, the jittering stops and the output drops to zero. The infrared LED seems to be very strong, because if I put my finger (directly) over the photodiode and the LED, the output has still one fourth of its maximum value.
So I will definetly use an additional switch to toggle this sensor on and of (otherwise mapping in traktor would be a pain), and recommend this to everyone else using this sensor.
Greetings Geth