Inbetriebnahme der Pixy 2.1 mit Simulink: Unterschied zwischen den Versionen

Aus HSHL Mechatronik
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Zeile 11: Zeile 11:
[[Datei:Arduino ICSP.jpg|thumb|rigth|300px|Abb. 2: Verbindung Pixy 2.1 mit Flachbandkabel mit Arduino ICSP]]
[[Datei:Arduino ICSP.jpg|thumb|rigth|300px|Abb. 2: Verbindung Pixy 2.1 mit Flachbandkabel mit Arduino ICSP]]
[[Datei:Pixy 10P.jpg|thumb|rigth|300px|Abb. 3: Verbindung Pixy 2.1 mit Flachbandkabel mit 10 poligem Stecker]]
[[Datei:Pixy 10P.jpg|thumb|rigth|300px|Abb. 3: Verbindung Pixy 2.1 mit Flachbandkabel mit 10 poligem Stecker]]
 
[[Datei:ArduinoR3 ICSP.jpg|thumb|rigth|300px|Abb. 4: ICSP des Arduino R3]]
Steckerbelegung an der Pixy 2.1 (10P)
Steckerbelegung an der Pixy 2.1 (10P)
  1  2
  1  2
Zeile 22: Zeile 22:
{| class="wikitable"
{| class="wikitable"
! style="font-weight: bold;" | Pin
! style="font-weight: bold;" | Pin
! style="font-weight: bold;" | Belegung
! style="font-weight: bold;" | Pixy 2 | Arduino ICSP
|-
|-
| 1 || SPI MISO, UART RX, GPIO0
| 1 || SPI MISO
|-
|-
| 2 || 5 V
| 2 || VCC
|-
|-
| 3 || SPI SCK, DAC OUT, GPIO1
| 3 || SPI SCK
|-
|-
| 4 || SPI MOSI, UART TX, GPIO2
| 4 || SPI MOSI
|-
|-
| 5 || I2C SCL
| 5 || Reset
|-
|-
| 6 || GND
| 6 || GND
|}
{| class="wikitable"
! style="font-weight: bold;" | Pin
! style="font-weight: bold;" | Pixy 2 | Arduino ICSP
|-
|-
| 7 || SPI SS, ADC IN, GPIO3
| 1 || SPI MISO, UART RX, GPIO0 || SPI MISO
|-
|-
| 8 || GND
| 2 || 5 V || VCC
|-
|-
| 9 || I2C SDA
| 3 || SPI SCK, DAC OUT, GPIO1 || SPI SCK
|-
|-
| 10 || GND
| 4 || SPI MOSI, UART TX, GPIO2 || SPI MOSI
|-
| 5 || I2C SCL || Reset
|-
| 6 || GND || GND
|-
| 7 || SPI SS, ADC IN, GPIO3 || NC
|-
| 8 || GND || NC
|-
| 9 || I2C SDA || NC
|-
| 10 || GND || NC
|}
|}


'''Problem:''' SPI SS (10P) ist mit Pin 5 des Arduino ICSP '''nicht''' verbunden.
= I2C Verbindung =
{| class="wikitable"
! style="font-weight: bold;" | Pin
! style="font-weight: bold;" | Pixy 2 | Arduino
|-
| 1 || SPI MISO, UART RX, GPIO0 || NC
|-
| 2 || 5 V || VCC
|-
| 3 || SPI SCK, DAC OUT, GPIO1 || NC
|-
| 4 || SPI MOSI, UART TX, GPIO2 || NC
|-
| 5 || I2C SCL || NC
|-
| 6 || GND || GND
|-
| 7 || SPI SS, ADC IN, GPIO3 || NC
|-
| 8 || GND || NC
|-
| 9 || I2C SDA || NC
|-
| 10 || GND || NC
|}
----
----
→ zurück zum Hauptartikel: [[Kamerasensor_Pixy_2.1]]<br>
→ zurück zum Hauptartikel: [[Kamerasensor_Pixy_2.1]]<br>

Version vom 25. November 2025, 11:13 Uhr

Abb. 1: Kamerasystem Pixy 2.1
Autor: Prof. Dr.-Ing. Schneider


Hardware Verbindung mit Originalkabel

Originalartikel: Hooking up Pixy to a Microcontroller

Abb. 2: Verbindung Pixy 2.1 mit Flachbandkabel mit Arduino ICSP
Abb. 3: Verbindung Pixy 2.1 mit Flachbandkabel mit 10 poligem Stecker
Abb. 4: ICSP des Arduino R3

Steckerbelegung an der Pixy 2.1 (10P)

1  2
3  4
5  6
7  8
9  10 


Pin Pixy 2 | Arduino ICSP
1 SPI MISO
2 VCC
3 SPI SCK
4 SPI MOSI
5 Reset
6 GND


Pin Pixy 2 | Arduino ICSP
1 SPI MISO, UART RX, GPIO0 SPI MISO
2 5 V VCC
3 SPI SCK, DAC OUT, GPIO1 SPI SCK
4 SPI MOSI, UART TX, GPIO2 SPI MOSI
5 I2C SCL Reset
6 GND GND
7 SPI SS, ADC IN, GPIO3 NC
8 GND NC
9 I2C SDA NC
10 GND NC

Problem: SPI SS (10P) ist mit Pin 5 des Arduino ICSP nicht verbunden.

I2C Verbindung

Pin Pixy 2 | Arduino
1 SPI MISO, UART RX, GPIO0 NC
2 5 V VCC
3 SPI SCK, DAC OUT, GPIO1 NC
4 SPI MOSI, UART TX, GPIO2 NC
5 I2C SCL NC
6 GND GND
7 SPI SS, ADC IN, GPIO3 NC
8 GND NC
9 I2C SDA NC
10 GND NC

→ zurück zum Hauptartikel: Kamerasensor_Pixy_2.1