We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
posted on 2014/10/26 07:38:00 AM CET
I am facing a problem to measure power, i would be very thankful if anyone send me a code for it as i m new to programming.
posted on 2014/10/26 07:37:57 AM CET
I am facing a problem to measure power, i would be very thankful if anyone send me a code for it as i m new to programming.
posted on 2014/10/22 05:04:23 PM CEST
Español
hola buen dÃa! Mi lenguaje es el español por lo tanto hago mi solicitud en mi lengua. Yo llevo trabajando con Mikrobasic Pro alrededor de 4 años, antes tuve la oportunidad de conocer y trabajar con otros compiladores, pero una ves conocà de este compilador "MikraBasic" me quede con el.
Yo dirÃa que hace falta entre las librerÃas o entre los comandos algo que nos permita leer un pulso de flanco de bajada o de subida a determinado tiempo claro! y por un determinado pin. esto se puede hacer en un solo renglón donde nos permita hacer dicho trabajo y mostrar en una LCD o GLCD y asà optimizar tiempo de trabajo y renglones de código.
No veo por que han dejado de lado un muy importe recurso que otros no han dudado en tener en cuenta, que bien, podrÃa resumirse en un nuevo comando.
English
hello good day! My language is Spanish so I make my application on my tongue. I have been working with Pro Mikrobasic about 4 years before I had the opportunity to meet and work with other compilers, but see I met this compiler "MikraBasic" I stayed with him.
I would say it takes between libraries or between commands something that allows us read a falling edge pulse or given rise to the clear weather! and for a fixed pin. this can be done on one line where we were allowed to do such work, and display on an LCD or GLCD and optimize working time and lines of code.
I do not see that they have set aside a sum resource that others have not hesitated to consider that good, could be summarized as a new command.
posted on 2014/10/17 04:28:03 AM CEST
Hello,
I'm using the accelerometer MMA7361 to convert the slope in degrees.
I'm having problems doing the following equation by the compiler:
degrees = asin ((reading1 - 1.65) / 0.8; // this formula was removed from the Freescale website "Aplication Note AN3107 - Measuring Tilt with Low-g Accelerometers"
where:
degrees (Float)
Reading1 (int) used to convert A / D value in tension.
The value shows only "0" and not know why. I think there is a problem with my variable or the "asin" function.
........................................Program.......................................................................
while (1){
Leitura = Adc_Read(0); //Faz a leitura do canal AN0 (X)
Leitura = Leitura / 0.20459; //a variável Leitura. Faz em seguida a operação
IntToStr(Leitura, texto); //para apresentar o valor entre 0 a 5000mV
Glcd_Write_Text(texto, 40, 3, 1);
//Transformar em Graus
Leitura1 = Adc_Read(0); //Faz a leitura do canal AN0 (X)
Leitura1 = Leitura1 / 0.20459; //a variável Leitura. Faz em seguida a operação
graus = asin ((Leitura1 - 1.65) / 0.8;
IntToStr(graus, texto1);
Glcd_Write_Text(texto1, 40, 5, 1);
delay_ms(250);
if (graus > 40) {
RELE = 1;
LED = 1;
}
else {
RELE = 0;
LED = 0;
}
}
}
posted on 2014/10/15 07:44:41 PM CEST
I am trying to interface the THERMO clicker with the clicker2 board which has the STM32F407VGT6 MCU. I am using the first microbus slot and I have put in a K thermo couple probe into the THERMO clicker. I have initialized SPI3 and I have tried both SPI_Read and SPI3_Read functions. But I observed that the program is stuck in an infinite loop in the SPI read block. Can you please let me know what is the problem?
Thanks!