Hírek:

Fontos tudnivalók a migrációval kapcsolatban, Kérlek nézd meg a Régi fórumról új fórumra való költözés

Main Menu

Segítség, béna vagyok!

Indította gaben, 2024 április 09, 15:35

Előző téma - Következő téma

a86ifm7g5

Sziasztok!

Szerintetek ebbe a műanyag tokba lehet elektromos zárat tenni? Ha igen hogyan, milyet, ha nem, miért nem?

Köszönöm.

        

Arany János

Sziasztok!
Barátkozom az Uno+keypad+LCD+I2C összeállítással.
50%-os sikerrel!
Én már nagyon akarom![#nevetes1]
Ő még ellenáll!!!

/*
 * Created by ArduinoGetStarted.com
 *
 * This example code is in the public domain
 *
 * Tutorial page: https://arduinogetstarted.com/tutorials/arduino-keypad-lcd
 */

#include <Keypad.h>
#include <LiquidCrystal_I2C.h>

const int ROW_NUM    = 4; // four rows
const int COLUMN_NUM = 4; // four columns

char keys[ROW_NUM][COLUMN_NUM] = {
  {'1','2','3', 'A'},
  {'4','5','6', 'B'},
  {'7','8','9', 'C'},
  {'*','0','#', 'D'}
};

byte pin_rows[ROW_NUM] = {9, 8, 7, 6};      // connect to the row pinouts of the keypad
byte pin_column[COLUMN_NUM] = {5, 4, 3, 2}; // connect to the column pinouts of the keypad

Keypad keypad = Keypad(makeKeymap(keys), pin_rows, pin_column, ROW_NUM, COLUMN_NUM );
LiquidCrystal_I2C lcd(0x27, 16, 2); // I2C address 0x27, 16 column and 2 rows

int cursorColumn = 0;

void setup(){
  lcd.init(); // initialize the lcd
  lcd.backlight();
}

void loop(){
  char key = keypad.getKey();

  if (key) {
    lcd.setCursor(cursorColumn, 0); // move cursor to   (cursorColumn, 0)
    lcd.print(key);                 // print key at (cursorColumn, 0)

    cursorColumn++;                 // move cursor to next position
  if(cursorColumn == 16) {        // if reaching limit, clear LCD
      lcd.setCursor(cursorColumn, 1);
      lcd.print(key);
   
    }
  }
}



A problémám: a 25. billentyű lenyomásra kezdi el a második sort.

Mit nem értek már megint???

dezsoe

Szia!

Nincs nálam Arduino, de fejből valahogy így kéne:

/*
 * Created by ArduinoGetStarted.com
 *
 * This example code is in the public domain
 *
 * Tutorial page: https://arduinogetstarted.com/tutorials/arduino-keypad-lcd
 */

#include <Keypad.h>
#include <LiquidCrystal_I2C.h>

const int ROW_NUM    = 4; // four rows
const int COLUMN_NUM = 4; // four columns

char keys[ROW_NUM][COLUMN_NUM] = {
  {'1','2','3', 'A'},
  {'4','5','6', 'B'},
  {'7','8','9', 'C'},
  {'*','0','#', 'D'}
};

byte pin_rows[ROW_NUM] = {9, 8, 7, 6};      // connect to the row pinouts of the keypad
byte pin_column[COLUMN_NUM] = {5, 4, 3, 2}; // connect to the column pinouts of the keypad

Keypad keypad = Keypad(makeKeymap(keys), pin_rows, pin_column, ROW_NUM, COLUMN_NUM );
LiquidCrystal_I2C lcd(0x27, 16, 2); // I2C address 0x27, 16 column and 2 rows

int cursorRow = 0;
int cursorColumn = 0;

void setup(){
  lcd.init(); // initialize the lcd
  lcd.backlight();
}

void loop(){
  char key = keypad.getKey();

  if (key) {
    lcd.setCursor(cursorColumn, cursorRow); // move cursor to   (cursorColumn, 0)
    lcd.print(key);                 // print key at (cursorColumn, 0)

    ++cursorColumn;                 // move cursor to next position

    if (cursorColumn == 16) {        // if reaching limit, clear LCD
      ++cursorRow;
      cursorColumn = 0;
    }

    if (cursorRow == 2) {
      lcd.clear();
      cursorRow = 0;
    }
  }
}


Teleírja az első sort, majd a másodikat, majd ha az is betelt, akkor törli a képernyőt és kezdi elölről. Ha nem rontottam el... :)

Arany János

Köszönöm!!!
MŰKÖDIK!

dezsoe


Arany János

Sziasztok!
Szeretném összeházasítani a SpeedySteppert, egy 4x4-es keypad-ot és egy 16x2-es I2C-s LCD-t.
Még társulhatna a társasághoz 2db. végállás is.
De ugye csak az erő van meg hozzá, az ész az már kevésbé!
A segítség nagyon rám férne!
Ha valaki úgy gondolja, jöhet a "pénzkeresősben" is!!!
Ebben az esetben jó lenne, ha egy kb.számot írna, mert ugye gondolnom kell az alakomra is!
(mondjuk szerintem a gömb a leg tökéletesebb)
[#nevetes1][#nevetes1][#nevetes1]

svejk

Keresek régebbi HURCO marógépen dolgozó, vagy ilyen gépet valamelyest ismerő fórumtársat egy-két láma kérdés erejéig.

( BMC30-as gép de még DOS-os Ultimax II-es vezérlő )

fa4igtzhp

Mi az a SpeedyStepper? Google nem dobott ki konkretan semmit ra.

dezsoe


fa4igtzhp

Ok latom, koszi. Erre kar egy egesz aurdionot elpazarolni :) Nem tudom mit szeretne a Poster, de GRBL + valami soros portos taviranyito biztos tudja azt a funkcionalitast amit a poszter szeretne.

Arany János

A poszter nagyjából ilyesmit szeretne!
NEO7
Nagyjából!!!
Egyébként Mach3-as gépen dolgozik és nemrég bedobozolt magának egy Grbl-t! És a számára szükséges G-kódokról is hallott!
A Grbl ott bukik, hogy "+ valami soros portos taviranyito "!!!
Nem szeretne még külön eszközt egy ilyen feladatra!

Hunor

Sziasztok!
Segítséget szeretnék kérni. Ismeritek-e ennek a tápnak az indítását? (LoneWolf hirdeti, de ő sem tud adni több infót, mint amit a képen a gyártó közölt.)
Típus: Emerson HRS1150-9000
Köszönöm.

      

Arany János

Bénázgatok tovább!
Szeretném "megállítani" a kód futását,



//      ******************************************************************
//      *                                                                *
//      *      Example using units of Millimeters, instead of Steps      *
//      *                                                                *
//      *            S. Reifel & Co.                6/24/2018            *
//      *                                                                *
//      ******************************************************************


// Many stepper motors are used in projects where the motions are linear
// instead of rotational.  Examples are XY mechanisms such as plotters and
// 3D printers.  In these cases issuing move commands in "Millimeters" is  
// much more intuitive than "Steps".  This program show how to work with  
// units in millimeters.
//
// Note: If your mechanism has a Homing Switch so that it can automatically  
// move to its "Home" position on startup, checkout the function:  
//    moveToHomeInMillimeters()
//  
//
// Documentation at:
//    https://github.com/Stan-Reifel/SpeedyStepper
//
//
// The motor must be connected to the Arduino with a driver board having a
// "Step and Direction" interface.  It's VERY important that you set the
// motor current first!  Read the driver board's documentation to learn how.

// ***********************************************************************


#include <SpeedyStepper.h>
#include <Keypad.h>
#include <LiquidCrystal_I2C.h>

const int ROW_NUM    = 4; // four rows
const int COLUMN_NUM = 4; // four columns

char keys[ROW_NUM][COLUMN_NUM] = {
  {'1','2','3', 'A'},
  {'4','5','6', 'B'},
  {'7','8','9', 'C'},
  {'*','0','#', 'D'}
};

byte pin_rows[ROW_NUM] = {9, 8, 7, 6};      // connect to the row pinouts of the keypad
byte pin_column[COLUMN_NUM] = {5, 4, 3, 2}; // connect to the column pinouts of the keypad

Keypad keypad = Keypad(makeKeymap(keys), pin_rows, pin_column, ROW_NUM, COLUMN_NUM );


//
// pin assignments
//
const int LED_PIN = 13;
const int MOTOR_STEP_PIN = 11;    //3;
const int MOTOR_DIRECTION_PIN = 12;  //4;


//
// create the stepper motor object
//
SpeedyStepper stepper;



void setup()
{
  //
  // setup the LED pin and enable print statements
  //
  pinMode(LED_PIN, OUTPUT);  
  Serial.begin(9600);


  //
  // connect and configure the stepper motor to its IO pins
  //
  stepper.connectToPins(MOTOR_STEP_PIN, MOTOR_DIRECTION_PIN);
}



void loop()
{
  //
  // First you must tell the library "how many steps it takes to move
  // one millimeter".  In this example I'm using this stepper motor with
  // a built in lead-screw:
  //    Stepper Motor with 38cm Lead Screw:  https://www.pololu.com/product/2690
  //
  stepper.setStepsPerMillimeter(60 * 1);    // 1x microstepping


  //
  // set the speed and acceleration rates for the stepper motor
  //
  stepper.setSpeedInMillimetersPerSecond(100.0);
  stepper.setAccelerationInMillimetersPerSecondPerSecond(50.0);


  //
  // Use "absolute" positioning to:
  // Move to positions: 8mm, 16mm, 24mm, then back to the home position
  //
  stepper.moveToPositionInMillimeters(00.0);
  delay(2000);
  stepper.moveToPositionInMillimeters(68.0);
  delay(2000);
  stepper.moveToPositionInMillimeters(136.0);
  delay(2000);
  stepper.moveToPositionInMillimeters(208.0);
  delay(2000);
  stepper.moveToPositionInMillimeters(276.0);
  //delay(2000);
 
  //
  // increase the speed, then go to position -16mm
  //
  //stepper.setSpeedInMillimetersPerSecond(50.0);
  //stepper.setAccelerationInMillimetersPerSecondPerSecond(100.0);
  //stepper.moveToPositionInMillimeters(0.0);
  //delay(1000);


  //
  // Use "relative" positioning to make several more moves, 1mm each
  //
  //for (int i = 0; i < 16; i++)
  //{
  //stepper.moveRelativeInMillimeters(0.0);
  //delay(100);
   



  //}
 delay(5000);
}


de a "főkapcsoló" kivételével nem sikerült semmivel sem!
A "*", vagy "D" billentyű lenyomásával szeretném a "delay"-t
kiváltani.
Hiába másolgatom be a talált megoldásokat, (amikről azt hiszem, hogy megfelelnek) egyik sem hoz eredményt!
Illetve vannak eredmények: kivétel nélkül hibaüzik!!!

3vv2btrhv

Nem találok semmi értelmes adatot arra az esetre ,amikor feltöltős villany óra van . Rezsics9ökkentö kalkulátorban .Most akkor mi van ? [#nemtudom]

do3om

Hi
Csiszolószalag végtelenítésre gyárilag használt megoldás beszerezhető valahol?
Olyan egyszerű lenne vele szalagot végteleníteni, mivel ennél nincs fedésbe rakva, mégis brutális erős a kötés. Az is kérdés még persze hogy ezt az erős kötést ha be is szerezhető az anyag kivitelezhető e otthon.