Category Archives: Uncategorized

TinyOS

TinyOS
github: TinyOS, Main development repository for TinyOS (an OS for embedded, wireless devices).
github: nesC, an extension to the C programming language designed to embody the structuring concepts and execution model of TinyOS
TinyOS Documentation Wiki
TinyOS FAQ

github: SigFoxTMPDemo

module SigFoxTMPDemoC {
  uses {
    interface Boot;
    interface Leds;

    interface UartStream as UartStreamOut;
    interface UartByte as UartByteOut;
    interface Resource as UartResourceOut;
    interface HplMsp430UsciA as UartConfigOut;

    interface Timer<TMilli> as ReadTimer;
    interface Timer<TMilli> as ReadRspBuffer;    
    interface Read<uint16_t> as TempSensor;
  }
}

configuration SigFoxTMPDemoAppC { }

implementation {
  components MainC, LedsC, SigFoxTMPDemoC as App;

  // Application
  App.Boot -> MainC;
  App.Leds -> LedsC;

  // Serial to device
  components new Msp430Uart1C();
  App.UartStreamOut -> Msp430Uart1C;
  App.UartByteOut -> Msp430Uart1C;
  App.UartResourceOut -> Msp430Uart1C.Resource; 

  components HplMsp430UsciA1C as UartConfigOut;
  App.UartConfigOut -> UartConfigOut;

  // Timers
  components new TimerMilliC() as ReadTimer;
  App.ReadTimer -> ReadTimer;
  
  components new TimerMilliC() as ReadRspBuffer;
  App.ReadRspBuffer -> ReadRspBuffer;

  // Sensors
  components new SimpleTMP102C() as Temperature;
  App.TempSensor -> Temperature;  

}

Chameleon Project – NFC Card Emulator

Welcome to the Chameleon Project
ChameleonMini – A Versatile NFC Card Emulator, and more…
ChameleonMini

Chameleon: A Versatile Emulator for Contactless Smartcards, PDF 16.11.2011
Chameleon-Mini Documentation

Zu NFC und Authentisierung

RFID (radio-frequency identification)
Near Field Communication
Authentifizierung

Tutorial

Unleash the Chameleons!
Sniffing Tags with the ChameleonMini
Getting Started with the ChameleonMini

Sniff / Reader

after setting config to ISO14443A_READER, config cannot be changed via python
Binary characters in output of IDENTIFY
ChameleonMini fun – Getting it to work

XMODEM

  • XMODEM: rx for receiving, sx for sending.
  • YMODEM: rb for receiving, sb for sending.
  • ZMODEM: rz for reveiving, sz for sending.

Quit/Exit:
2 x CTRL-X

Wikipedia: XMODEM
Transferring files using serial console
Send a file over serial port with XMODEM protocol
What is the complementary command to ‘rx’ for xmodem transfer?
XMODEM, YMODEM, and ZMODEM
Send file by xmodem or kermit protocol with GNU screen
screen Zmodem
GNU Screen and Zmodem

Serial Programming

Serial Programming HOWTO
Binary data over serial terminal

Eleks Maker Laser Cutter 5.5W 5500MW with Benbox

GitHub: grbl
GitHub Wiki: Connecting Grbl

V0.8:
D12 = Laser On

V0.9:
D11 = Laser On (PWM)
eleks_maker_pcb

Banggood

5500mW A3 30x40cm Desktop DIY Violet Laser Engraver Picture CNC Printer Assembling Kits

AliExpress

X-Benbox , 300*400mm , 5500MW big DIY laser engraving machine,5.5W diy marking machine,diy laser engrave machine,advanced toys
X-Benbox , 300*400mm , 5500MW big DIY laser engraving machine , 5.5W diy marking machine,diy laser engrave machine,advanced toys

Kamera Module

Viele Kamera-Sensoren haben einen Bayer-Filter / Bayer-Sensor:

Please note that this is a Bayer sensor. You will have to do a large amount of post-processing on it to get YUV or RGB out.

Source 14mp mipi camera

Wikipedia: Bayer-Sensor
Bayer to RGB Demosaicing
How a Pixel Gets its Color | Bayer Sensor | Digital Image
UDACITY: Kurs Computational Photography

  • OV528
  • OV2640
  • OV7670
  • OV5642 (5MP)
  • OV8865 (OmniVision, 8MP)
  • OV9655
  • OV9712
  • CS5642 (5MP)
  • GC0309
  • S5C7322X
  • S5K433CA
  • SX5433M14X
  • IMX286 (Sony)

BananaPi BPI-M3 camera, one is OV5640(5M Pixel),and the other is OV8865(8M Pixel)

Resolution Sensor Vendor Camera Module Manufacture
0.3MP Omnivision OV7660 / OV7670 / OV7675 / OV7725 ArduCAM
0.3MP Aptina MT9V111/MT9V034 ArduCAM
1.3MP Aptina MT9M112 / MT9M001/AR0134 ArduCAM
2MP Omnivision OV2640 ArduCAM
2MP Aptina MT9D111 / MT9D112 ArduCAM
3MP Omnivision OV3640 ArduCAM
3MP Aptina MT9T112 ArduCAM
5MP Omnivision OV5640 / OV5642 ArduCAM
10MP Aptina MT9J001 ArduCAM
14MP Aptina MT9F002 ArduCAM

How to initiate CMOS camera GC0309?
github: Linux driver gc0309.c
VC0706 Camera Module DIY Guide
How to use OV7670 Camera Module with Arduino?
WaveShare Camera Modules

AVRcam

AVRcam
AVRcam nachbauen
ATmega8-Kamera

ArduCAM

ArduiCAM: Arduino Based Camera
ArduCAM ESP32 UNO
github.com/ArduCAM/Arduino, ArduCAM Library Introduction
github.com/ArduCAM/ArduCAM_ESP8266_UNO
github.com/ArduCAM/ArduCAM_ESP32S_UNO

Composite Video
Fernsehsignal

China Fräser / Fräsköpfe

Drill Bits

HSS 4 Flute End Milling Cutter Drill Bit 3/16×1/4 Inch Straight Shank Engraving Tool
10pcs 1.5mm-3.175mm Carbide End Mill Engraving Bits For CNC Rotary Burrs
Drillpro 10pcs 1.3mm-3.175mm Carbide End Mill Engraving Bits for CNC PCB Rotary Burrs
Drillpro 10pcs 3.175mm Tungsten Steel Milling Cutter Bits End Mills
10pcs 1/8 Inch Shank 2 Flutes Carbide Ball Nose End Mills 17mm 2 Flute CNC Cutting Tool

LoPy and MicroPython

Cross-Reference blog.bachi.net:
Internet of Things (IoT) Protocols & Standards
LoRa: The Things Network

kickstarter: LoPy – the LoRa, WiFi and Bluetooth IoT development platform, 8. Feb 2016 – 8. Mar 2016 (30 Tage)
Pycom

kickstarter: Micro Python: Python for microcontrollers, 13. Nov 2013 – 13. Dez 2013 (30 Tage)
MicroPython – Python for microcontrollers
github: MicroPython – a lean and efficient Python implementation for microcontrollers and constrained systems

PyCom Announcements & News, (Update Firmware, etc.)

Documentation

Pycom ESP32
Pycom LoPy: WLAN (old?)
Pycom LoPy: Quick reference for the LoPy (old?)
class LoRa (old?)
Python Module: Modularisierung
Python Tutorial: Module

FTDI Drivers

D2XX Drivers

Support Download

github.com/pycom
github.com/pycom/pycom-libraries/examples/
Support Download

Forum Posts

iC880 A SPI : Missing Payload in received Packet?
LoRaWAN ABP example => DevEUI
Connecting the lopy to my lorank8 gateway

Firmware

How to solve the firmware update failures
Exciting open source news!
Firmware source code?

FTP

Username: micro
Password: python

Boot-Mode and Safe-Mode

Boot modes and safe boot
Safe boot

Using “The Things Network”

LoPy Usage

>>> CTRL-D
PYB: soft reboot
MicroPython v1.8.6-464-g0f843911 on 2017-02-17; LoPy with ESP32
Type "help()" for more information.

>>> import os
>>> os.uname().release
'1.6.3.b2'

>>> os.uname()
(sysname='LoPy', nodename='LoPy', release='1.6.3.b2', version='v1.8.6-464-g0f843911 on 2017-02-17', machine='LoPy with ESP32', lorawan='1.0.0')
>>> import binascii
>>> import network
>>> import machine
>>> from network import LoRa

#  Device EUI
>>> lora = LoRa(mode=LoRa.LORAWAN)
>>>print(binascii.hexlify(lora.mac()).upper().decode('utf-8'))
70B3D54994AD77E0

>>> binascii.hexlify(network.LoRa().mac())
b'70b3d5499a6b6439'
>>> binascii.hexlify(machine.unique_id())
b'240ac400c004'
>>> binascii.hexlify(network.WLAN().mac())
b'240ac400c004'
lora = LoRa(mode=LoRa.LORAWAN, sf=7, tx_power=14)
lora.BW_125KHZ
lora.CODING_4_5

# create an OTAA authentication tuple (NWSkey, AppSKey, DevAddr)
auth = (bytes([0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX]),
        bytes([0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX]),
        0x69128CD3 )

lora.join(activation=LoRa.ABP, auth=auth, timeout=0)

while not lora.has_joined():
print('Trying to join LoRa network')
sleep(1)
pass
print('Joined LoRa Network')

pycom.rgbled(GREEN)
s = socket.socket(socket.AF_LORA, socket.SOCK_RAW)
s.setblocking(False)

while True:
print('Sending Packet')
s.send('Hello from the LoPy')
print('Done sending')
sleep(2)
import pycom
import machine
import time

pycom.heartbeat(False)

led=machine.Pin("G16",machine.Pin.OUT)
button=machine.Pin("G17",machine.Pin.IN, pull=machine.Pin.PULL_UP)

def handler(button):
    led.toggle()

irq=button.callback(trigger=button.IRQ_FALLING, handler=handler)

Change Frequency

Changing Frequency region after upgrade
class LoRa