Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - aishen

Pages: [1]
1
Core Development / how to make a deb for ubuntu
« on: 2017-May-15 08:51:57 am »
Hi
I have compiled the french version of visualino, how can I make a deb to put it somewhere to download for french people ?

2
General Discussion / voltmeter
« on: 2016-December-17 10:27:58 am »
Any help ?
I tried to reproduce this voltmeter in visualino, but it doesn't work, can you guide me ?

#include <LiquidCrystal.h>
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
int analogInput = 0;
float vout = 0.0;
float vin = 0.0;
float R1 = 100000.0; // resistance of R1 (100K) -see text!
float R2 = 10000.0; // resistance of R2 (10K) - see text!
int value = 0;
void setup(){
   pinMode(analogInput, INPUT);
   lcd.begin(16, 2);
   lcd.print("DC VOLTMETER");
}
void loop(){
   // read the value at analog input
   value = analogRead(analogInput);
   vout = (value * 5.0) / 1024.0; // see text
   vin = vout / (R2/(R1+R2));
   if (vin<0.09) {
   vin=0.0;//statement to quash undesired reading !
}
lcd.setCursor(0, 1);
lcd.print("INPUT V= ");
lcd.print(vin);
delay(500);
}

3
Core Development / compilar visualino
« on: 2016-December-14 02:36:47 pm »
Me gustaría llegar a compilar la aplicación, puede que me guíe para apoyar dichos manuales o explicar cómo? Me 16.04.1 Linux. Al compilar con Qt4 dijo que no encontró el qtserial lib todavía compilado? gracias por adelantado
Tr

4
Foro general - Español / LCDfr
« on: 2016-December-14 10:30:59 am »
Gracias maravilloso LCD fr

5
Core Development / Robot
« on: 2016-December-14 01:15:04 am »
I baught an elegoo robot car and there is no much pain to use visualino.
But I did a temperatura LCD and I don't know how to enter the variable temp, any help ?
-----------------------------------------------
#include <Wire.h>
#include <LiquidCrystal.h>
LiquidCrystal lcd(7, 8,9, 10, 11, 12);
double Thermister(int RawADC)
{
  double Temp;
  Temp = log(((10240000/RawADC) - 10000));
  Temp = 1 / (0.001129148 + (0.000234125 * Temp) + (0.0000000876741 * Temp * Temp * Temp));
  Temp = Temp - 220.15; // Convertir Kelvin en Celcius

  return Temp;
}

void setup()
{
  //lcd.begin(16,2);
  //lcd.clear();

  Serial.begin(9600);
}

void loop()
{
  lcd.begin(16,2);
  Serial.println(int(Thermister(analogRead(0)))); // Afficher Fahrenheit

  lcd.print(int(Thermister(analogRead(0))));

  lcd.print(" degres ");

  delay(100);

  lcd.clear();
}

6
Core Development / How to translate blocks ?
« on: 2016-December-13 10:42:19 pm »
I would like to translate blocks in french. How does it works ?
I work on ubuntu and I translated the interface, meanwhile I can't yet get it in french so I rename my file en-GB just for me to see how it's well translated.
Now I would like to translate blocks. Is it possible without compilation, because I can't compile it on ubuntu qt5 serial doesn't work et qt4 serial can't compile.

7
General Discussion / New to visualino
« on: 2016-December-12 11:50:34 am »
Hi,
I recently discovered visualino, thank you for this excellent tool. I am french and I would like to know if it's translated or not, eventually I might try to do it after a longer experience. To begin I am doing an Elego Robot car vers 0.2 conversion. I started a LCD telemeter and I found one variable I don't know how to set it, here is the arduino program :

(variable I don't know how to set ? unsigned int distance = duree*(VITESSE/1000.0); //on multiplie par la vitesse, d=t*v and #define VITESSE at the moment)

#include <LiquidCrystal.h>
#define VITESSE 340
const int USTrig = 2; // Déclencheur sur la broche 8
const int USEcho = 3; // Réception sur la broche 9
LiquidCrystal lcd(7,8,9,10,11,12);
void setup() {
    lcd.begin(2, 16);
    pinMode(USTrig, OUTPUT);
    pinMode(USEcho, INPUT);
    lcd.print("Telemetre");
   
}
void loop()
{
   digitalWrite(USTrig, HIGH);
   delayMicroseconds(10);
   digitalWrite(USTrig, LOW);
   unsigned long duree = pulseIn(USEcho, HIGH);
  if(duree > 30000)
   {
      //si la durée est supérieure à 30ms, l'onde est perdue
      lcd.clear();
      lcd.home(); // Replace le curseur en haut à gauche
      lcd.print("Onde perdue :(");
      lcd.setCursor(0,1);
      lcd.print("Mesure echouee !");
   }
   else
   {
      // 4. On divise cette durée par deux pour n'avoir qu'un trajet
      duree = duree/2;

      // 5. On calcul la distance avec la formule d=v*t
      unsigned int distance = duree*(VITESSE/1000.0); //on multiplie par la vitesse, d=t*v

      // 6. On affiche !
      lcd.clear();
      lcd.home(); // Replace le curseur en haut à gauche
      char message[16] = "";
      sprintf(message, " Dist : %4d mm", distance);
      lcd.print(message);
      sprintf(message, "Temps : %4d us", duree);
      lcd.setCursor(0,1);
      lcd.print(message);
   }
   delay(250); // Petite pause
}

Any help,
Thank you
(I can read spanish as I used to know it , I use ubuntu.)

Pages: [1]