usb data logger


Posted on Feb 6, 2014

The Vinculum board is controlled using DOS commands and so every time you send a command if the command is executed successfully the board sends a D:> response that indicates its ready for the next command. If you try and send commands faster than the Vinculum board takes to execute them and don`t wait until after the Vinculum board has sent the D:>  ready for new command response, I


usb data logger
Click here to download the full size of the above Circuit.

found I would get errors in the data stored and it would sometimes crash. To solve this the arduino sketch code listens for a response from the Vinculum board after it sends each command, if it receives D:>  which I`ve called the ok response then it can go on to send the next command. If it receives No disk  it stops trying to write to a non existent disk and waits until a disk is inserted and the start write button is pressed. Just a simple start/stop write button. To start writing you hold the button down for 2s and the led comes on to indicate writing. To stop writing you hold it down again for 2s and the led turns off. If the arduino wait for `ok` response code receives a `no disk` response. The led is automatically turned off. The arduino sketch here works with the board independently of any of the other energy monitor hardware and code. It will just write the values set in the variable declaration to the board as an example. I have my arduino connected with the ethernet shield to internet to upload values to mysql database each 10 seconds, but sometimes it crashes and it goes offline, i loose all the data for that time. I would like to save that data to the usb so that later i can update the mysql database with the missing data.




Leave Comment

characters left:

Related Circuits

  • New Circuits

    .

     


    Popular Circuits

    Gasfet Frequency Doubler
    70w stk amplifier schematic
    70W Stereo Audio Amplifier Circuit based STA550
    500W power inverter circuit diagram
    Battery charger circuit using L200
    Daewoo Korando Front and Rear Fog Lamp Schematic and Routing Diagrams
    clock circuit
    h-bridge circuitry
    Infrared Remote Receiver Has Four Outputs
    SIMPLE DELAY TIMER FOR ONE MINUTE
    Marshall JTM-45 and 62 Bluesbreaker Reissue Modifications
    The basic structure of the DA converter
    FGDF-3 three-phase low-temperature iron plating power commutation control switch and electronic circuit



    Top