By

Module ethernet

image
Ce module est arrivé lundi midi. (26/09/2011)

Article très intéressant au sujet de ce module : http://dereenigne.org/tag/enc28j60

Pour interfacer ce module avec l’arduino, il faut utiliser les broche « SPI » et une broche « interrupts ».

Le challenge rigolo avec ce bidule, c’est qu’il fonctionne en 3.3v. Cette tension est facile à fournir pour l’alimentation, mais ca se complique sérieusement quand il faut communiquer avec l’arduino qui lui, est en 5v. Dans certains cas, il semble que ces 2 composants communiquent sans problème, donc sans composant d’adaptation au milieu. (74HCT08 par exemple)

Petit rappel des fonctions complémentaires utilisant des broches du contrôleur :

  • Serial: 0 (RX) and 1 (TX). Used to receive (RX) and transmit (TX) TTL serial data. These pins are connected to the corresponding pins of the ATmega8U2 USB-to-TTL Serial chip.
  • External Interrupts: 2 and 3. These pins can be configured to trigger an interrupt on a low value, a rising or falling edge, or a change in value. See the attachInterrupt() function for details.
  • PWM: 3, 5, 6, 9, 10, and 11. Provide 8-bit PWM output with the analogWrite() function.
  • SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK). These pins support SPI communication using the SPI library.
  • TWI: A4 (SDA) and A5 (SCL). Support TWI communication using the Wire library.

Laisser un commentaire