rolf

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Alpha Clock Five and serial in Python from a Raspberry Pi #21211
    rolf
    Participant

    I have done a bit of programming in Python on a Raspberry Pi for sending data to an Alpha Clock Five. My clock has firmware version 2 with the GPS extensions, so if you have a different firmware, you might need to make changes. Please let me know if you find it useful, comments, corrections, etc…


    Files in the above compressed archive:

    AlphaClockFiveSerial.py – Library module, imported into each of the other files. If you just run it, all variables are displayed.

    brightness – expects a command line parameter of an integer between 1 and 11.

    reset – set all parameters back to somewhat sane defaults and sets the mode back to display time.

    scroll – expects a quoted string of any length, a delay between updates, and a number of times to loop (between 1 and 99)
    bedtime – I plan to add this to crontab to run at 8:15 PM to tell my three year old it is time for bed…
    in reply to: Alpha Clock Five and serial in Python from a Raspberry Pi #21209
    rolf
    Participant

    I double checked, and my previous attempts were using the EvilMadScientist USB to TTL cable, which has a six pin connector on the TTL end. I tried the Python with rtscts=1, rtscts=True, rtscts=False. Same result on all, clock just resets.

    I switched to the AdaFruit cable https://www.adafruit.com/products/954 that has only four pins on the TTL side, and each pin is a separate female pin. I did not connect power, just ground, TX, and RX. Works great now…
Viewing 2 posts - 1 through 2 (of 2 total)