This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Bienvenido, Invitado
Tienes que registrarte para poder participar en nuestro foro.

Nombre de usuario
  

Contraseña
  





Estadísticas del foro
» Miembros: 18,626
» Último miembro: hajer_91
» Temas del foro: 12,500
» Mensajes del foro: 119,192

Estadísticas totales

Últimos temas
Problemas con teclado Log...
Foro: Informática
Último mensaje por: bankours
Ayer, 08:17 AM
» Respuestas: 3
» Vistas: 1,878
Влияние. Убеждение.
Foro: General
Último mensaje por: ooucosml
Ayer, 01:17 AM
» Respuestas: 0
» Vistas: 45
El campo magnético estáti...
Foro: General
Último mensaje por: terrimaldonado
27-11-2026, 05:21 AM
» Respuestas: 1
» Vistas: 221
Qué pequeños proyectos DI...
Foro: General
Último mensaje por: shwarzlazlo91
26-11-2026, 02:00 PM
» Respuestas: 2
» Vistas: 870
mi impresora da error de ...
Foro: General
Último mensaje por: exitburritos
26-11-2026, 03:29 AM
» Respuestas: 3
» Vistas: 1,253
Problema con inicio de la...
Foro: General
Último mensaje por: skilleddov
25-11-2026, 10:34 AM
» Respuestas: 9
» Vistas: 5,839





















 
  PROBLEMA Sensor Capacitivo
Enviado por: chiricbr600 - 24-03-2015, 06:38 PM - Foro: Electrónica - Sin respuestas

Hola, recientemente he montado un sensor capacitivo con un diodo tal como comenta MISAN, visto en la review de F. MALPARTIDA. El sensor realiza el autolevel, tengo puesto en 4 puntos. Pues bien para comprobar si estaba correcto, hice una prueba, puse un cubo en cada esquina y uno en el centro. Cual es mi sorpresa que el de la esquina delantera izquierda y la trasera derecha no pegan, se queda muy altos.
He cargados distintos marlin, y nada sigue igual.
Alguna idea y posible solucion??
Gracias


  Proyecto cofre abertura mediante RFID
Enviado por: Electromecánico - 24-03-2015, 05:10 PM - Foro: Arduino - Respuestas (17)

Buenas a tod@s:

Quiero hacer un proyecto que implemente un lector de tarjetas RFID.

Ayer me llegó el lector RFID con un llavero y una tarjeta. Durante esta mañana he probado un ejemplo:


Código:
/**
* ----------------------------------------------------------------------------
* This is a MFRC522 library example; see https://github.com/miguelbalboa/rfid
* for further details and other examples.
*
* NOTE: The library file MFRC522.h has a lot of useful info. Please read it.
*
* Released into the public domain.
* ----------------------------------------------------------------------------
* This sample shows how to read and write data blocks on a MIFARE Classic PICC
* (= card/tag).
*
* BEWARE: Data will be written to the PICC, in sector #1 (blocks #4 to #7).
*
*
* Typical pin layout used:
* -----------------------------------------------------------------------------------------
*             MFRC522      Arduino       Arduino   Arduino    Arduino          Arduino
*             Reader/PCD   Uno           Mega      Nano v3    Leonardo/Micro   Pro Micro
* Signal      Pin          Pin           Pin       Pin        Pin              Pin
* -----------------------------------------------------------------------------------------
* RST/Reset   RST          9             5         D9         RESET/ICSP-5     RST
* SPI SS      SDA(SS)      10            53        D10        10               10
* SPI MOSI    MOSI         11 / ICSP-4   51        D11        ICSP-4           16
* SPI MISO    MISO         12 / ICSP-1   50        D12        ICSP-1           14
* SPI SCK     SCK          13 / ICSP-3   52        D13        ICSP-3           15
*
*/

#include <SPI.h>
#include <MFRC522.h>

#define RST_PIN         9           // Configurable, see typical pin layout above
#define SS_PIN          10          // Configurable, see typical pin layout above

MFRC522 mfrc522(SS_PIN, RST_PIN);   // Create MFRC522 instance.

MFRC522::MIFARE_Key key;

/**
* Initialize.
*/
void setup() {
    Serial.begin(9600); // Initialize serial communications with the PC
    while (!Serial);    // Do nothing if no serial port is opened (added for Arduinos based on ATMEGA32U4)
    SPI.begin();        // Init SPI bus
    mfrc522.PCD_Init(); // Init MFRC522 card

    // Prepare the key (used both as key A and as key B)
    // using FFFFFFFFFFFFh which is the default at chip delivery from the factory
    for (byte i = 0; i < 6; i++) {
        key.keyByte[i] = 0xFF;
    }

    Serial.println(F("Scan a MIFARE Classic PICC to demonstrate read and write."));
    Serial.print(F("Using key (for A and B):"));
    dump_byte_array(key.keyByte, MFRC522::MF_KEY_SIZE);
    Serial.println();
    
    Serial.println(F("BEWARE: Data will be written to the PICC, in sector #1"));
}

/**
* Main loop.
*/
void loop() {
    // Look for new cards
    if ( ! mfrc522.PICC_IsNewCardPresent())
        return;

    // Select one of the cards
    if ( ! mfrc522.PICC_ReadCardSerial())
        return;

    // Show some details of the PICC (that is: the tag/card)
    Serial.print(F("Card UID:"));
    dump_byte_array(mfrc522.uid.uidByte, mfrc522.uid.size);
    Serial.println();
    Serial.print(F("PICC type: "));
    byte piccType = mfrc522.PICC_GetType(mfrc522.uid.sak);
    Serial.println(mfrc522.PICC_GetTypeName(piccType));

    // Check for compatibility
    if (    piccType != MFRC522::PICC_TYPE_MIFARE_MINI
        &&  piccType != MFRC522::PICC_TYPE_MIFARE_1K
        &&  piccType != MFRC522::PICC_TYPE_MIFARE_4K) {
        Serial.println(F("This sample only works with MIFARE Classic cards."));
        return;
    }

    // In this sample we use the second sector,
    // that is: sector #1, covering block #4 up to and including block #7
    byte sector         = 1;
    byte blockAddr      = 4;
    byte dataBlock[]    = {
        0x01, 0x02, 0x03, 0x04, //  1,  2,   3,  4,
        0x05, 0x06, 0x07, 0x08, //  5,  6,   7,  8,
        0x08, 0x09, 0xff, 0x0b, //  9, 10, 255, 12,
        0x0c, 0x0d, 0x0e, 0x0f  // 13, 14,  15, 16
    };
    byte trailerBlock   = 7;
    byte status;
    byte buffer[18];
    byte size = sizeof(buffer);

    // Authenticate using key A
    Serial.println(F("Authenticating using key A..."));
    status = mfrc522.PCD_Authenticate(MFRC522::PICC_CMD_MF_AUTH_KEY_A, trailerBlock, &key, &(mfrc522.uid));
    if (status != MFRC522::STATUS_OK) {
        Serial.print(F("PCD_Authenticate() failed: "));
        Serial.println(mfrc522.GetStatusCodeName(status));
        return;
    }

    // Show the whole sector as it currently is
    Serial.println(F("Current data in sector:"));
    mfrc522.PICC_DumpMifareClassicSectorToSerial(&(mfrc522.uid), &key, sector);
    Serial.println();

    // Read data from the block
    Serial.print(F("Reading data from block ")); Serial.print(blockAddr);
    Serial.println(F(" ..."));
    status = mfrc522.MIFARE_Read(blockAddr, buffer, &size);
    if (status != MFRC522::STATUS_OK) {
        Serial.print(F("MIFARE_Read() failed: "));
        Serial.println(mfrc522.GetStatusCodeName(status));
    }
    Serial.print(F("Data in block ")); Serial.print(blockAddr); Serial.println(F(":"));
    dump_byte_array(buffer, 16); Serial.println();
    Serial.println();

    // Authenticate using key B
    Serial.println(F("Authenticating again using key B..."));
    status = mfrc522.PCD_Authenticate(MFRC522::PICC_CMD_MF_AUTH_KEY_B, trailerBlock, &key, &(mfrc522.uid));
    if (status != MFRC522::STATUS_OK) {
        Serial.print(F("PCD_Authenticate() failed: "));
        Serial.println(mfrc522.GetStatusCodeName(status));
        return;
    }

    // Write data to the block
    Serial.print(F("Writing data into block ")); Serial.print(blockAddr);
    Serial.println(F(" ..."));
    dump_byte_array(dataBlock, 16); Serial.println();
    status = mfrc522.MIFARE_Write(blockAddr, dataBlock, 16);
    if (status != MFRC522::STATUS_OK) {
        Serial.print(F("MIFARE_Write() failed: "));
        Serial.println(mfrc522.GetStatusCodeName(status));
    }
    Serial.println();

    // Read data from the block (again, should now be what we have written)
    Serial.print(F("Reading data from block ")); Serial.print(blockAddr);
    Serial.println(F(" ..."));
    status = mfrc522.MIFARE_Read(blockAddr, buffer, &size);
    if (status != MFRC522::STATUS_OK) {
        Serial.print(F("MIFARE_Read() failed: "));
        Serial.println(mfrc522.GetStatusCodeName(status));
    }
    Serial.print(F("Data in block ")); Serial.print(blockAddr); Serial.println(F(":"));
    dump_byte_array(buffer, 16); Serial.println();
        
    // Check that data in block is what we have written
    // by counting the number of bytes that are equal
    Serial.println(F("Checking result..."));
    byte count = 0;
    for (byte i = 0; i < 16; i++) {
        // Compare buffer (= what we've read) with dataBlock (= what we've written)
        if (buffer[i] == dataBlock[i])
            count++;
    }
    Serial.print(F("Number of bytes that match = ")); Serial.println(count);
    if (count == 16) {
        Serial.println(F("Success :-)"));
    } else {
        Serial.println(F("Failure, no match :-("));
        Serial.println(F("  perhaps the write didn't work properly..."));
    }
    Serial.println();
        
    // Dump the sector data
    Serial.println(F("Current data in sector:"));
    mfrc522.PICC_DumpMifareClassicSectorToSerial(&(mfrc522.uid), &key, sector);
    Serial.println();

    // Halt PICC
    mfrc522.PICC_HaltA();
    // Stop encryption on PCD
    mfrc522.PCD_StopCrypto1();
}

/**
* Helper routine to dump a byte array as hex values to Serial.
*/
void dump_byte_array(byte *buffer, byte bufferSize) {
    for (byte i = 0; i < bufferSize; i++) {
        Serial.print(buffer[i] < 0x10 ? " 0" : " ");
        Serial.print(buffer[i], HEX);
    }
}

El caso es que quiero modificar ese código para que tan solo me lea la ID de cada dispositivo. Y actue un sero en función de las ID leídas. El caso es que necesito que una variable guarde la ID leída y no sé que tipo de varaiable tendría que escojer para recojer este tipo de datos (ya que mezcla numeros y letras).

Muchas gracias de antemano.


  xyzmat.com (filamentos para impresoras 3d)
Enviado por: xyzmat - 24-03-2015, 04:39 PM - Foro: General - Sin respuestas

Buenas tardes a todos:
Nos presentamos en este foro como empresa dedicada al filamento para impresoras 3D. Os invitamos a que echéis un vistazo a xyzmat.com y comprobéis nuestros competitivos precios, tanto en PLA como en ABS.
Ofrecemos un filamento con muy buena relación calidad/precio en colores básicos. Para cualquier duda, no dudéis en contactarnos a través de <!-- e --><a href="mailto:info@xyzmat.com">info@xyzmat.com</a><!-- e --> o llamando a cualquier numero de teléfono mostrados en la web.
Un saludo a todos y muchas gracias por vuestra atención.

El equipo, xyzmat.com


  [Sorteo] Kit Autolevel capacitivo
Enviado por: Proyectos Arduino - 24-03-2015, 03:47 PM - Foro: Sorteos - Respuestas (43)

Hoy os traemos un concurso rápido, para que todo el mundo tenga opción a conseguir un sensor autolevel capacitivo como los que ya tienen varios foreros, valorado en 24€ + portes (Envío gratuito para el sorteo)



Kit Autolevel

Recordad postear solo una vez en este hilo, copiando la lista como es habitual Mola

Normas de participación:
-Normas generales de SpainLabs: http://spainlabs.com/foro/viewtopic.php?f=39&t=317
-No podrán participar en ningún sorteo ninguno de los miembros que forman el STAFF así como usuarios registrados como tiendas.
-Ser participante activo del foro será requisito imprescindible en todos los casos. (15 mensajes)
-Si tras 72 horas no se consigue ponerse en contacto con el usuario (Mensaje privado y/o correo electrónico) se repetirá de nuevo el sorteo.
-Si realizado el sorteo se comprueba que el ganador en ese momento no reúne los requisitos, este se volverá a repetir y se considerará no válido.
-Si a través de las herramientas del foro se comprueba que un usuario participa más de una vez (múltiples cuentas) quedará automáticamente descartado en el momento del sorteo.
-Escribir un mensaje en este hilo.
-Los números de participación se repartirán por orden de aparición en el hilo comenzando en 1.


NUMERO GANADOR:
El número sobre el que se calculará el ganador será el obtenido en el sorteo de la ONCE del día Miércoles 1 de Abril. La fecha límite para apuntarse es el Martes 31 de Marzo a las 23:59.

El número ganador será aquel cuyo número coincida con el resto+1 de dividir el número del sorteo por el numero de participantes. (operación módulo)

Por ejemplo, si hay 74 usuarios apuntados en el sorteo y el cupón ganador es el 5876; (5876 mod 74) el ganador sería el usuario con el número 30+1; 31.

Os dejamos el link a nuestro Perfil de Facebook por si queréis estar al tanto de nuestras novedades Mola


Un saludo y suerte a todos!


  DLP
Enviado por: grafisoft - 24-03-2015, 11:48 AM - Foro: Mecánica - Sin respuestas

Pues te deberia de servir