Je cherche des idées pour automatiser la consommation électrique en fonction de la production des panneaux solaires.
L'onduleur Fronius permet de piloter 4 contacts secs en fonction de divers critères liés à la production d'électricité.
L'idée serait de piloter le chauffe eau, le lave linge...
Is it possible to make a stack overflow without using the GOTO command ?
' ! démonstration de ce qu'il ne faut pas faire !
Main:
sertxd("b0=",#b0,13,10)
gosub SousProg
goto Main
SousProg:
inc b0
if b0>0 then goto Main
return
I am currently learning ROSLYN
As an exercice, I try to write a "BASIC Math expression" to "PIcaxe math" program...
BASIC math expression are commonly defined by :
Combination of operators
Operator precedence
Here is the current version :
As you can see, some rules are functional.
If of...
Je n'aurai plus accès à Internet ces prochains jours, donc j'anticipe légèrement...
De même, écriture "inclusive" oblige pour les Picaxiennes fort peu nombreuses en France, (ou alors fort discrètes...)
mais bon ça viendra !
Pleins de petits Picaxes sous le sapin, et en tout cas pleins d'idées...
Alarm:
for I= 0 to 9
high doorbell
pause 100
low doorbell
next I
return
Seem to sound doorbell every 200 ms...
but a pause is missing !
This one works as expected and is shorter...
Alarm: ' supposing Doorbell is low at start
for I= 0 to 9...
For Alexrowland...
TABLE 0,("ABCDE")
readtable 0,b1
sertxd ("readtable 0,b1 : b1=",b1,13,10)
readtable 2,b1
sertxd ("readtable 2,b1 : b1=",b1,13,10)
You can try this code with the simulator.
Named pipe Plugin is an interesting feature but at the time limited to pin I/O.
Will it be possible to have serial data changes ? (serin/serout, I2C, SPI...)
So we can write device simulation (ds1207, LCD, APA102,...)
By the way, when only one pin change, it's not of interest to have whole...
Time not correctly simulated ?
This work :
do
sertxd (#Time," ")
if time>4 then
sertxd("Time Over",13)
endif
loop
That not :
do
' sertxd (#Time," ")
if time>4 then
sertxd("Time Over",13)
endif
loop
Mon objectif est de déterminer à quelle fréquence on doit rafraîchir un servo pour que le pilote ait le sentiment d'une bonne "réactivité".
Si vous posez la question à un pilote, il répondra probablement "la plus grande possible"
ce qui n'est pas une réponse, l'objectif étant en particulier de...
Ce thread est ouvert afin de ne pas continuer à polluer le thread.Obtenir-une-temperature-avec-Logicator
Tout a fait d'accord avec vous pour l'intérêt des nouvelles techniques de programmation, y compris celle que vous citez. Quand je parle de nivellement par le bas, c'est pour dire qu'on...
This is my Beta version for a Floating point Library.
Floating Point Numbers (FPN) are stored in
- a word variable for Mantissa
- a byte variable for exponent
A normalised positive FPN bit16 is always one (32767<FPN Mantissa<65536)
For the time, negative FPN are not supported.
Due to Picaxe...
Can-you confirm problem with simulation and step by step of this little code ?
#picaxe 40X2
#no_table
#simspeed 1
w0=52488
w1=41472
w2=w0**w1
sertxd("w2=",#w2,13,10)
or I have another specific problem...
I think there is a problem with step by step simulation in this erroneous program :
#picaxe 40X2
#no_table
#simspeed 1
w1=1<<2
w1=1<<15
w1=1<<16
w1=1<<17
w1=1<<31
w1=1<<32
w1=1<<63
w1=1<<127
w1=1<<254
w1=1<<255
PE6 stop working after w1=1<<17
Can you confirm ?
I recently answered a help request for a 11 lines program.
In that one, I "only" saw 8 GOTO commands so I wrote :
Please, forgot GOTO command wich is only a good way to write confusing and erroneous program...
As someone said that "there is nothing wrong with using GOTO.", I submitted that code...
To allow numbers > 32767 being interpreted as negative numbers
Already done for add, substract and multiply
need update for divide, sertxd and all like
It seem to be an implementation of Arctan from a post by Technical
ArcTan-Approximation
In Picaxe manual, section 2, page26, I can read :
As the arctan input is always a value between 0 and 1,
and
ATAN is supposed to work from 0 to 45 degrees
But when I simulate it, answer is always
0 from 1...
Suite à différents essais sur un autre thread, je propose un programme d'analyse des tensions renvoyées par le ReadADC.
L'objectif est de réaliser un oscillo sommaire permettant d'avoir une idée de l'évolution des valeurs lues par le Picaxe lors de la pression d'une touche. Plusieurs hypothèses...