Forum Replies Created

Viewing 1 - 7 of 7 posts
  • Lucko

    Member
    February 15, 2021 at 1:29 pm

    I copy/pased old code with a bug… This two part were fixed…

    // put your setup code here, to run once:

    pinMode(outputPin, OUTPUT);

    pinMode(CONTROLLINO_AO1, OUTPUT);

    pinMode(testPin, INPUT);

    analogWrite(outputPin, 1);

    analogWrite(CONTROLLINO_AO1, 1);

    And

    // put your setup code here, to run once:

    pinMode(outputPin, OUTPUT);

    pinMode(13, OUTPUT);

    pinMode(testPin, INPUT);

    analogWrite(outputPin, 1);

    analogWrite(13, 1);

  • Lucko

    Member
    March 2, 2021 at 9:03 am

    You got them over the mail… You stopped answering to mails again(web form and “massaging app” on your page) so this is my last attempt before I will ask for my money back and find a different solution.

  • Lucko

    Member
    February 17, 2021 at 8:43 am

    Hi!

    At the moment I can use 0 too. No idea what was wrong before. It might be a bug that we had and fixed… So I’m guessing it was me not setting pinMode… I’m more then happy to give you any additional data or screenshots if you need it it or run any program on a unit…

    Regards

    • This reply was modified 3 years, 2 months ago by  Lucko.
  • Lucko

    Member
    January 13, 2021 at 2:23 pm

    Could it be that a light indicator coming on for DI2 when turn on AO1 on Automation? Since AO1 doesn’t have one.. I don’t have a voltmeter to check voltage on a AO1 if that is a case… And the program was working just fine but when I was testing indicator tricked me…

    If I change to AO2 or 13 indicator DI3 turns on…

    • This reply was modified 3 years, 3 months ago by  Lucko.
  • Lucko

    Member
    January 13, 2021 at 2:12 pm

    That did not work… And it was not D12 but DI2 that is activating… That should be 10… And now I’m running really simple test code… A0 is OK but 12 is not working…

    #include <Controllino.h>

    int outputPin = 12;

    int testPin = A0;

    void setup() {

    // put your setup code here, to run once:

    pinMode(testPin, INPUT);

    analogWrite(outputPin, 0);

    }

    void loop() {

    // put your main code here, to run repeatedly:

    if (digitalRead(testPin)){

    analogWrite(outputPin, 255);

    }

    if (!(digitalRead(testPin))){

    analogWrite(outputPin, 0);

    }

    }

    • This reply was modified 3 years, 3 months ago by  Lucko.
  • Lucko

    Member
    January 13, 2021 at 1:53 pm

    I think so… I did also add

    #include <Controllino.h>

    Anyway I will just use blue numbers for now…

    Thanks!

  • Lucko

    Member
    January 13, 2021 at 1:07 pm

    Hi!

    I would just like to port Arduino DUE code to it… You can do that with Arduino so even in case your analog is only 8bit you can still use 12bit value… So in this case I could just use almost same code… Now I need to change it from 4095 to 255 and so on…

    Also it looks like code is not 100% compatible in some other places but will ask that in the right part of a forum…

    Regards

Viewing 1 - 7 of 7 posts