Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. fameuhly
    3. Posts
    F
    • Continue chat with fameuhly
    • Start new chat with fameuhly
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by fameuhly

    • RE: PIN number and shields

      @playthegame 在 PIN number and shields 中说:

      Thank you, I will continue my tests. The matches will help me!

      posted in PROJECTS
      F
      fameuhly
    • RE: PIN number and shields

      Thank you for the info @ajb2k3 and @PlayTheGame !
      I will order the connectors.
      I did the quick test and it works well, but I used the proto module to get the pins numbers.

      Is there a table with the corresponding pin numbers of the proto module and the back of the m5stack core?
      0_1541400220276_m5back.jpg
      For example, where is pin 13 on the back of the m5stack core?

      I have everything to learn!

      posted in PROJECTS
      F
      fameuhly
    • RE: PIN number and shields

      Yes, i've seen. I've bought one of this but the connector on the nema 17 is not the good one to plug on the stepmotor module.

      posted in PROJECTS
      F
      fameuhly
    • RE: PIN number and shields

      Thank you PlayTheGame, it's not clear for me...
      can you help me on a concrete example?
      I have a step motor driver TB6600, I use the following arduino sketch by connecting the PIN 2, 5 and 8 on the Arduino Nano.

      // defines pins numbers
      const int stepPin = 5;
      const int dirPin = 2;
      const int enPin = 8;

      void setup() {
      // Sets the two pins as Outputs
      pinMode(stepPin,OUTPUT);
      pinMode(dirPin,OUTPUT);
      pinMode(enPin,OUTPUT);
      digitalWrite(enPin,LOW);

      }

      void loop() {

      digitalWrite(dirPin,HIGH); // Enables the motor to move in a particular direction
      // Makes 200 pulses for making one full cycle rotation

      for(int x = 0; x < 200; x++) {
      digitalWrite(stepPin,HIGH);
      delayMicroseconds(200);
      digitalWrite(stepPin,LOW);
      delayMicroseconds(200);
      }

      delay(1000); // One second delay

      digitalWrite(dirPin,LOW); //Changes the rotations direction
      // Makes 400 pulses for making two full cycle rotation

      for(int x = 0; x < 400; x++) {
      digitalWrite(stepPin,HIGH);
      delayMicroseconds(500);
      digitalWrite(stepPin,LOW);
      delayMicroseconds(500);
      }

      delay(1000);

      }

      0_1541344708095_IMG_2627-small.jpg

      I would like to use the same thing on the m5stack but I can not find the good PIN.

      thank you

      posted in PROJECTS
      F
      fameuhly
    • PIN number and shields

      Hello, I am looking for a table of correspondence of the pins numbers used in the arduino sketches and the pins of the M5stack core.
      I test with the sketch "blink" and apart from the pins G2 and G5, I can not find.
      Can you help me ?
      I have to connect different shields, step motor, relay, but i can't find the good pins.
      Thank you

      posted in PROJECTS
      F
      fameuhly
    • RE: M5UI.Flow and Blynk?

      I'm interested too ! I follow.

      posted in Cores
      F
      fameuhly
    • RE: pneumatic seeder

      Hello again,
      i've made a sketch on arduino ide to control a nema 17 stepper motor with the shield L298N

      here is the sketch :
      /*
      Controle de moteur pas à pas avec un L298N
      Le moteur est connecté sur les broches 2,3,4 et 5 de l'Arduino
      Le fil de masse (GND) est commun aux 2 platines.
      */

      #include <Stepper.h>

      const int NbPasParTour = 200; // Nombre de pas pour 360 degres
      Stepper Moteur1(NbPasParTour, 2, 3, 4, 5); // Initialise le moteur sur les broches 2 à 5

      void setup()
      {
      Moteur1.setSpeed(60); //Vitesse de rotation du moteur
      Serial.begin(9600); //Initialise le moniteur série
      }

      void loop()
      {
      Serial.println("Sens horaire"); //On fait 1 tour en sens horaire
      Moteur1.step(NbPasParTour);
      delay(1000); //Pause 1 seconde

      Serial.println("Sens anti-horaire"); //On fait 1 tour en sens anti-horaire
      Moteur1.step(-NbPasParTour);
      delay(1000); //Pause 1 seconde
      }

      It's work fine !

      But when i try on the m5, on the PIN 3, 1, 16, 17 with this sketch, the motor only vibrate :
      /*
      Controle de moteur pas à pas avec un L298N
      Le moteur est connecté sur les broches 3, 1, 16, 17 du m5
      Le fil de masse (GND) est commun aux 2 platines.
      */
      #include <M5Stack.h>
      #include <Stepper.h>

      const int NbPasParTour = 200; // Nombre de pas pour 360 degres

      Stepper Moteur1(NbPasParTour, 3, 1, 16, 17); // Initialise le moteur sur les broches

      void setup()
      {
      Moteur1.setSpeed(100); //Vitesse de rotation du moteur
      m5.begin();
      M5.Lcd.setBrightness(200);

      M5.Lcd.setTextColor(0xffff);
      M5.Lcd.setTextSize(3);
      M5.Lcd.setCursor(50, 20);
      M5.Lcd.print("M5 Seeder");
      }

      void loop()
      {
      M5.Lcd.setTextColor(0x7bef);
      M5.Lcd.setTextSize(2);
      M5.Lcd.setCursor(55, 60);
      M5.Lcd.print("Sens horaire");
      Moteur1.step(NbPasParTour*2);
      delay(1000); //Pause 1 seconde

      M5.Lcd.setTextColor(0x7bef);
      M5.Lcd.setTextSize(2);
      M5.Lcd.setCursor(55, 60);
      M5.Lcd.print("Sens anti-horaire");
      Moteur1.step(-NbPasParTour);
      delay(1000); //Pause 1 seconde

      m5.update();
      }

      Any idea ?
      thank you

      posted in PROJECTS
      F
      fameuhly
    • RE: comments on uiflow and m5go

      I have a question, maybe stupid but i'm a noob :)
      I have burned m5go, all is ok. I can connect with uiflow.
      But can i use arduino IDE to make my sketches and upload them on the m5 and have an access with a menu as like in uiflow ?
      I need more practice with blocks before i can use uiflow.

      Thank you

      posted in PRODUCTS
      F
      fameuhly
    • RE: pneumatic seeder

      Hello, thank you Julian, i've tried this sample. It work fine.
      But is there a sample of this code with comments too really understand each part ?
      Is there some exemples with "fritzing" draw ?

      thank you.

      posted in PROJECTS
      F
      fameuhly
    • pneumatic seeder

      Hi,
      i've just discovered M5stack, great product !

      I am a farmer and I produce organic vegetables.
      I have a project of pneumatic seed drill with venturi effect.
      I know a little arduino but not at all micropython.
      I am a little lost, I would like to know where to start my project.
      I have to control stepper motors and a solenoid valve.

      I would like to start simply by programming a stepper motor to advance a conveyor belt.

      Any ideas to help me?
      thank you very much

      posted in PROJECTS
      F
      fameuhly