sensors


Posted on Feb 7, 2014

Though the Arduino has no problem catching the incoming sensor data (it typically executes code in the range of microseconds (1 millionth of a second), I was running into trouble passing the data between the Arduino and Max. Without getting too technical, the data transfer speed was too slow. As someone who tries to be primarily concerned with the realization of creative projects rather than


sensors
Click here to download the full size of the above Circuit.

elegant technical solutions, I will admit that I always aim for the simplest solution even if it isn`t the most efficient. Sometimes, as in this case, the simplest solution (handling all of my data calculations in Max) just isn`t going to work. I realized I was going to have to calculate RPMs using the Arduino and then transmit a running tally of the current RPMs to Max (along with data from the Force Sensing Resistors, as seen in this video ). I knew that this could pose a large technical problem. I would need to calculate the RPMs by taking the triggers from the Hall effect sensors while at the SAME TIME I would need to be constantly updating the data from the Force Sensing Resistors. Typical Arduino sketches have one function loop(), which runs over and over while the board is on. Pausing to wait for incoming data from the Hall effect sensors would delay the execution of my code and stop the data being sent to Max I needed to do two things at once. Fortunately in the world of open source technology, the solutions to many technical challenges lie online. This great example by Zitron shows how to use hardware interrupts to read in the data from the hall effect sensor outside of the loop() function. The result is that I can just send a constantly updated stream of RPM data to Max. This turns out to be a much better solution, because if I miss a sensor trigger between the Arduino and MAX, the RPM data will be wrong...




Leave Comment

characters left:

Related Circuits

  • New Circuits

    .

     


    Popular Circuits

    Tritium Solar engine
    Human detector circuit
    9-V-battery-life-extender
    Garduino-Automated Gardening System using Arduino
    tda7560 4 x 50 watt bridge
    fan 220v ac speed control
    servo tester using 4538
    Switch Timer For Bathroom Light
    electronic dice
    Arduino based electricity meter
    Fundamentals of Electrical Engineering and Monostable Multivibrator
    PC Output Interface



    Top