picaxehama0013
New Member
Hello,
I'm using S2P helper app with 08M2. I'm wondering why temperature sensor and servo will not work and tried to investigate. I think the helper app can't work for this cases, because the PICAXE will not receive correct commands. I have "sniffed" into the serial protocoll and found out this:
- Temperature:
The S2P-PICAXE comunicator program "Picaxe_connect.bas" waits for an "h"-command for using the "readtemp"-command. But the helper app will never send out this command. Instead of this, the command "a" will be used for "set pin as" to "Temperature", in the same way like the ""set pin as" to "switch". Because of this SCRATCH will never be able to read out any temperature.
- SERVO:
There is the command "servo" available, only! For a correct functionality the command "servopos" should be available, too.
I think, the problem comes from the S2P helper app, because the "Picaxe_connect.bas" and "picaxe-08m2.s2b" (json-file) looks ok...I've tried to insert the "SERVOPOS"-command to this files, but do not know how the S2P this commands will use...
I know, Blockly is the better tool for programming a picaxe with blocks, but SCRATCH is worth to work with PICAXE in online interaction with a computer, too!
possibly I'm wrong with my investigation - but please let me know, what I'm doing wrong.
Thanks!
Mathias
I'm using S2P helper app with 08M2. I'm wondering why temperature sensor and servo will not work and tried to investigate. I think the helper app can't work for this cases, because the PICAXE will not receive correct commands. I have "sniffed" into the serial protocoll and found out this:
- Temperature:
The S2P-PICAXE comunicator program "Picaxe_connect.bas" waits for an "h"-command for using the "readtemp"-command. But the helper app will never send out this command. Instead of this, the command "a" will be used for "set pin as" to "Temperature", in the same way like the ""set pin as" to "switch". Because of this SCRATCH will never be able to read out any temperature.
- SERVO:
There is the command "servo" available, only! For a correct functionality the command "servopos" should be available, too.
I think, the problem comes from the S2P helper app, because the "Picaxe_connect.bas" and "picaxe-08m2.s2b" (json-file) looks ok...I've tried to insert the "SERVOPOS"-command to this files, but do not know how the S2P this commands will use...
I know, Blockly is the better tool for programming a picaxe with blocks, but SCRATCH is worth to work with PICAXE in online interaction with a computer, too!
possibly I'm wrong with my investigation - but please let me know, what I'm doing wrong.
Thanks!
Mathias