Strict Standards: Accessing static property JCache::$_handler as non static in /home/igretro/public_html/bobtech/libraries/joomla/cache/cache.php on line 420

Strict Standards: Accessing static property JCache::$_handler as non static in /home/igretro/public_html/bobtech/libraries/joomla/cache/cache.php on line 422

Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/system/easyheader17v23/easyheader17v23.php on line 113
Configurare Raspberry Pi pentru utilizarea interfetei seriale

Articole similare


Strict Standards: Non-static method modRelatedItemsHelper::cutText() should not be called statically in /home/igretro/public_html/bobtech/modules/mod_related_items/helper.php on line 119

Strict Standards: Non-static method modRelatedItemsHelper::cutText() should not be called statically in /home/igretro/public_html/bobtech/modules/mod_related_items/helper.php on line 119

Strict Standards: Non-static method modRelatedItemsHelper::cutText() should not be called statically in /home/igretro/public_html/bobtech/modules/mod_related_items/helper.php on line 119

Strict Standards: Non-static method modRelatedItemsHelper::cutText() should not be called statically in /home/igretro/public_html/bobtech/modules/mod_related_items/helper.php on line 119

Strict Standards: Non-static method modRelatedItemsHelper::cutText() should not be called statically in /home/igretro/public_html/bobtech/modules/mod_related_items/helper.php on line 119

Strict Standards: Non-static method modRelatedItemsHelper::cutText() should not be called statically in /home/igretro/public_html/bobtech/modules/mod_related_items/helper.php on line 119

Strict Standards: Non-static method modRelatedItemsHelper::cutText() should not be called statically in /home/igretro/public_html/bobtech/modules/mod_related_items/helper.php on line 119

Strict Standards: Non-static method modRelatedItemsHelper::cutText() should not be called statically in /home/igretro/public_html/bobtech/modules/mod_related_items/helper.php on line 119

Strict Standards: Non-static method modRelatedItemsHelper::cutText() should not be called statically in /home/igretro/public_html/bobtech/modules/mod_related_items/helper.php on line 119

Strict Standards: Non-static method modRelatedItemsHelper::cutText() should not be called statically in /home/igretro/public_html/bobtech/modules/mod_related_items/helper.php on line 119

Strict Standards: Non-static method modRelatedItemsHelper::cutText() should not be called statically in /home/igretro/public_html/bobtech/modules/mod_related_items/helper.php on line 119

  • Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/phocadownload/phocadownload.php on line 28

    Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/phocadownload/phocadownload.php on line 29
    SD card pentru Raspberry Pi, care este mai bun ?
    Ai un Raspberry Pi si vrei sa te pui pe treaba ? Ce memorie...

  • Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/phocadownload/phocadownload.php on line 28

    Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/phocadownload/phocadownload.php on line 29
    Ce este Raspberry Pi ?
    RaspberryPi, zis RasPi, este un computer care ruleaza Linux...

  • Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/phocadownload/phocadownload.php on line 28

    Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/phocadownload/phocadownload.php on line 29
    GPIO in Pyton pe Raspberry Pi
    Descarca arhiva  RPi.GPIO-0.3.1a.tar.gz si instaleaza, ...

  • Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/phocadownload/phocadownload.php on line 28

    Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/phocadownload/phocadownload.php on line 29
    Pimotique - casa inteligenta cu Raspberry Pi
    Cu Pimotique poti sa-ti controlezi prizele din casa prin Int...

  • Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/phocadownload/phocadownload.php on line 28

    Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/phocadownload/phocadownload.php on line 29
    MN-WD552B - dongle nano USB WiFi pentru Raspberry Pi
    Interfata USB 2.0, 802.11b/g/n, 150Mbps, 64/128-bit WEP, 128...

  • Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/phocadownload/phocadownload.php on line 28

    Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/phocadownload/phocadownload.php on line 29
    Configurare Raspberry Pi pentru Python
    Cum sa instalezi Python si Geany, Hello World pe Raspberry P...

  • Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/phocadownload/phocadownload.php on line 28

    Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/phocadownload/phocadownload.php on line 29
    Cum sa instalezi dongle WiFi MN-WD552B pe Raspberry Pi
    MN-WD552B nano USB WiFi functioneaza pe Raspberry Pi, dar nu...

  • Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/phocadownload/phocadownload.php on line 28

    Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/phocadownload/phocadownload.php on line 29
    PiLowLib - librarie low level I/O pentru Raspberry Pi
    PiLowLib este o librarie pentru acces low level la periferic...

  • Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/phocadownload/phocadownload.php on line 28

    Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/phocadownload/phocadownload.php on line 29
    PiEye - streaming webcam in format M-JPG cu Raspberry Pi
    Cu o camera web ieftina ce se conecteaza pe USB se poate f...

  • Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/phocadownload/phocadownload.php on line 28

    Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/phocadownload/phocadownload.php on line 29
    Comunicatie pe port serial in Python sub Windows
    Configurare PySerial, PyDev pentru Python si primul progra...

  • Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/phocadownload/phocadownload.php on line 28

    Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/phocadownload/phocadownload.php on line 29
    motionEye cu Raspberry Pi
    Frontend web pentru un soft de monitorizare video pentru L...

Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/phocadownload/phocadownload.php on line 28

Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/phocadownload/phocadownload.php on line 29

Strict Standards: Declaration of JCacheControllerView::get() should be compatible with JCacheController::get($id, $group = NULL) in /home/igretro/public_html/bobtech/libraries/joomla/cache/controller/view.php on line 126

Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/mavikthumbnails/mavikthumbnails.php on line 208

Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/mavikthumbnails/mavikthumbnails.php on line 393

Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/mavikthumbnails/mavikthumbnails.php on line 393

Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/phocadownload/phocadownload.php on line 28

Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/phocadownload/phocadownload.php on line 29

Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/codehighlighter/codehighlighter.php on line 106

Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/extravote/extravote.php on line 49

Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/udjacomments/udjacomments.php on line 100

Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/plugins/content/udjacomments/udjacomments.php on line 136

Configurare Raspberry Pi pentru utilizarea interfetei seriale

pyserial-logoraspi tutorial

Descarca pyserial-2.6.tar.gz de aici pypi.python.org/pypi/pyserial, dezarhiveaza-l si instaleaza-l:

wget http://pypi.python.org/packages/source/p/pyserial/pyserial-2.6.tar.gz
tar -zxvf pyserial-2.6.tar.gz
cd pyserial/pyserial-2.6
sudo python setup.py install

Editeaza fisierul de configurare /boot/cmdline.txt: sudo nano /boot/cmdline.txtsi eliminia urmatoarele linii:

console=ttyAMA0,115200
kgdboc =ttyAMA0,115200

Editeaza fisierul /etc/inittab sudo nano /etc/inittabsi elimina urmatoarea linie:

#T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100

Exemplu de utilizare port serial pe Raspberry Pi in Python

import serial

serialPort = serial.Serial(port="/dev/ttyAMA0", baudrate=115200, timeout=0.5, rtscts=False, dsrdtr=False, xonxoff=False, bytesize=serial.EIGHTBITS, parity=serial.PARITY_NONE)

if not serialPort.isOpen():
        serialPort.open()
        
        #write to serial port 
        serialPort.write(txdatabuffer)
        serialPort.flush()
        
        #read from serial port
        while serialPort.inWaiting()>0:
            #inWaiting() returns characters in receive buffer
            rxdatabuffer += serialPort.read([receivebytescount])
            #if receivebytescount missing, will read until EOF
    
        #alternatively you can use readline()
        serialPort.readline()
        rxdatabuffer = rxdatabuffer.decode( "UTF-8" )
        
        serialPort.close()

Nota: ai nevoie de un transceiver de nivel (ex. SP3223), de la 3.3V acceptat de pinii GPIO ai lui Rapsberry Pi la nivel +12V ("0" logic") / -12V ("1" logic) conform standardului RS-232


Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/modules/mod_udjacomments/helper.php on line 26

Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/modules/mod_udjacomments/helper.php on line 42

Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/modules/mod_udjacomments/helper.php on line 73

comentarii


Strict Standards: Only variables should be assigned by reference in /home/igretro/public_html/bobtech/modules/mod_udjacomments/tmpl/default_form.php on line 98