Go to advanced search

by Kampi
Wed Oct 19, 2016 4:13 pm
Forum: Deutsch
Topic: Fehler beim Luftdruck mit einem BME280
Replies: 2
Views: 1289

Re: Fehler beim Luftdruck mit einem BME280

Fehler gefunden. Es gab zwei Probleme. Zum einen hatte ich einen Fehler mit den Datentypen und zum zweiten hat die Zeile var1 = np.int64(t_fine) - 128000 Probleme verursacht, da t_fine jedes mal mit 0 initialisiert wurde. Ich habe nun einfach in der ReadTemperature()-Methode eine globale Variable t_...
by Kampi
Tue Oct 18, 2016 4:38 pm
Forum: Deutsch
Topic: Fehler beim Luftdruck mit einem BME280
Replies: 2
Views: 1289

Fehler beim Luftdruck mit einem BME280

Hallo zusammen, ich habe einen BME280 per SPI mit meinem Raspberry Pi verbunden und möchte den Luftdruck auslesen. Dafür habe ich folgendes Python Skript: import spidev import time import numpy as np BME280 = spidev.SpiDev() BME280.open(0, 0) CalibrationData = {} t_fine = 0 def WriteRegister(Adresse...
by Kampi
Thu Sep 22, 2016 6:28 pm
Forum: Deutsch
Topic: PCA9685 - Falscher Duty Cycle
Replies: 6
Views: 1198

Re: PCA9685 - Falscher Duty Cycle

Danke für den Tipp.
Gott sei Dank bin ich nicht der einzige der es falsch verstanden hat ;)
by Kampi
Wed Sep 21, 2016 5:53 pm
Forum: Deutsch
Topic: PCA9685 - Falscher Duty Cycle
Replies: 6
Views: 1198

PCA9685 - Falscher Duty Cycle

Hallo zusammen, ich möchte einen PCA9685 per I²C mit meinem Raspberry Pi per Python ansteuern und habe diesen Code geschrieben: import smbus import time ChipAdresse = 0x40 PCA8685 = smbus.SMBus(1) # Chip reseten PCA8685.write_byte(0x00, 0x06) def SetDutyCycle(Pin, OnZeit, OffZeit): Basisadresse = 0x...
by Kampi
Mon Oct 26, 2015 5:45 pm
Forum: Windows 10 for IoT
Topic: Serial port support for the raspi?
Replies: 48
Views: 20579

Re: Serial port support for the raspi?

Hello,

do you have an example for using the hardware UART on Raspi Win10?
I have to try it too ;)
by Kampi
Tue Apr 07, 2015 8:17 am
Forum: Advanced users
Topic: HAT EEPROM
Replies: 3
Views: 1752

HAT EEPROM

Hello Guys, I´m testing a little bit with a HAT EEPROM for my Raspberry Pi. In this case I have ordered some 24c32 EEPROMs and connect one of it with the EEDATA and EECLOCK Pins of my Raspberry Pi v2. After that I build a small device tree (just for testing): /dts-v1/; /plugin/; / { compatible = "br...
by Kampi
Mon Apr 06, 2015 2:52 pm
Forum: Deutsch
Topic: Raspberry Pi HAT EEPROM
Replies: 0
Views: 775

Raspberry Pi HAT EEPROM

Hallo zusammen, ich spiele derzeit etwas mit einem ID-EEPROM für mein Raspberry Pi rum. Dazu habe ich in raspi-config den Device Tree Support aktiviert, mir ein EEPROM vom Typ 24c32 an die EEDATA und EECLOCK Pins angeschlossen und mir einen kleinen Device Tree Zusatz gebaut: /dts-v1/; /plugin/; / { ...
by Kampi
Wed Oct 29, 2014 8:38 am
Forum: Advanced users
Topic: Raspberry Pi Devicetree
Replies: 0
Views: 414

Raspberry Pi Devicetree

Hello Guys, I read something about Devicetrees for ARM Devices like Raspberry Pi. So I found a good explanation: http://www.devicetree.org/Device_Tree_Usage After reading this, I try to translate the Know-how to the Devicetree of the Raspberry Pi. I found a example here (have to check it at home on ...
by Kampi
Sun Sep 07, 2014 11:53 am
Forum: Deutsch
Topic: Kernelsources - Problem bei der Installation
Replies: 0
Views: 345

Kernelsources - Problem bei der Installation

Hallo zusammen, ich wollte mein Raspberry Pi neu aufsetzen und dabei die Kernelsources installieren, damit ich Kernelmodule programmieren kann. Es existiert jetzt ein Verzeichnis /lib/modules/3.12.26+ aber die Kernelversion ist 3.12.22+ (bekomme ich durch uname -r raus), aber ich kann den Kernel nic...
by Kampi
Sat Aug 23, 2014 12:05 pm
Forum: C/C++
Topic: ADS1015 Driver
Replies: 0
Views: 1130

ADS1015 Driver

Hello, I want to programm a simple A/D Converter Driver for my Raspberry Pi. I also write a C-Programm on Register Level to Communicate with my ADC. This Programm works very well and I can configure and read the ADC. Not I modify it for a Driver: #include <linux/fs.h> #include <linux/version.h> #inc...
by Kampi
Fri Jul 25, 2014 7:19 pm
Forum: Python
Topic: Thermal Printer
Replies: 8
Views: 1381

Re: Thermal Printer

mmh don´t know. He is printing a Bitmap now, but it is really white and I can´t see any Logo.... I convert my Logo into a List of Values: http://s7.directupload.net/images/140725/temp/eyegnd9x.png And use this Code for my Bitmap: def PrintBitmap(self, Liste, Width, Height): self.UART.write(chr(18)) ...
by Kampi
Thu Jul 24, 2014 9:26 pm
Forum: Python
Topic: Thermal Printer
Replies: 8
Views: 1381

Re: Thermal Printer

FLYFISH TECHNOLOGIES wrote:Hi,
Kampi wrote:But it seems that this isn´t right, because the Printer doesn´t print a black square.
In my previous response I colored two bytes with height and width information... I can't locate them in your code.


Best wishes, Ivan Zilic.
Sorry copied the wrong Code.
Have fixes the Problem!
by Kampi
Thu Jul 24, 2014 8:57 pm
Forum: Python
Topic: Thermal Printer
Replies: 8
Views: 1381

Re: Thermal Printer

Hello, thanks for your Answer. I have the following Code now: def PrintBitmap(self, Liste, Width, Height): for Row in range (Height): self.UART.write(chr(18)) self.UART.write(chr(42)) self.UART.write(chr(Height)) self.UART.write(chr(Width)) for Char in range (Width): Position = Height * Row + Char s...
by Kampi
Thu Jul 24, 2014 4:54 pm
Forum: Python
Topic: Thermal Printer
Replies: 8
Views: 1381

Re: Thermal Printer

Hey,

sorry, I mean this Part for writing a Bitmap into the Printer

Image
by Kampi
Thu Jul 24, 2014 4:31 pm
Forum: Python
Topic: Thermal Printer
Replies: 8
Views: 1381

Thermal Printer

Hello,

I want to write a small Programm for my Thermalprinter:

http://www.adafruit.com/products/597

But I don´t know how it works for Bitmaps. I don´t understand the Datasheet....
Can you please help me?

Thank you!
Daniel
by Kampi
Sun Jul 20, 2014 9:30 pm
Forum: Bare metal, Assembly language
Topic: Simple I²C - PCF8574
Replies: 13
Views: 3601

Re: Simple I²C - PCF8574

Omg, I´m such an idiot.
My Code was right. I use the Raspberry Pi B+, use I2C1 and the GPIO from I2C0 -.-
Change GPIO and it works!
Thanks mate, don´t need your Code :)
by Kampi
Sun Jul 20, 2014 8:26 pm
Forum: Bare metal, Assembly language
Topic: Simple I²C - PCF8574
Replies: 13
Views: 3601

Re: Simple I²C - PCF8574

Can you please post your whole Code?
by Kampi
Sun Jul 20, 2014 7:39 pm
Forum: Bare metal, Assembly language
Topic: Simple I²C - PCF8574
Replies: 13
Views: 3601

Re: Simple I²C - PCF8574

Yes, you are right.
But also no reaction :(
by Kampi
Sun Jul 20, 2014 7:06 pm
Forum: Bare metal, Assembly language
Topic: Simple I²C - PCF8574
Replies: 13
Views: 3601

Re: Simple I²C - PCF8574

Connect my LA to my Raspberry Pi and it seems, that the Raspberry Pi doesn´t send anything :/
by Kampi
Sun Jul 20, 2014 5:47 pm
Forum: Bare metal, Assembly language
Topic: Simple I²C - PCF8574
Replies: 13
Views: 3601

Re: Simple I²C - PCF8574

mikronauts wrote:WiringPi has support for the 8574, see

http://wiringpi.com/extensions/i2c-pcf8574/
I don´t want to use WiringPi....
Otherwise I will programm this with Python or with external I²C Libs for C.
I want to to it from beginning for the Experience of developing C-Code for Embedded Systems and so on :)
by Kampi
Sun Jul 20, 2014 5:18 pm
Forum: Bare metal, Assembly language
Topic: Simple I²C - PCF8574
Replies: 13
Views: 3601

Re: Simple I²C - PCF8574

Sorry for this misstake.
God damit.....forgot the modprobe Command in /etc/rc.local
But nothing happens :(
by Kampi
Sun Jul 20, 2014 4:57 pm
Forum: Bare metal, Assembly language
Topic: Simple I²C - PCF8574
Replies: 13
Views: 3601

Simple I²C - PCF8574

Hello Guys, I want to control a PCF8574 via I²C over Low Level C Programming. For that I write this small Programm: #include <stdio.h> // Standard Ein-/Ausgabe #include <sys/mman.h> // Für die mmap() Funktion #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <fcntl.h> #define...
by Kampi
Wed Jul 02, 2014 6:08 pm
Forum: C/C++
Topic: My first Driver
Replies: 10
Views: 2257

Re: My first Driver

Hey, thanks. It works! :) Now I have a second Question. A few Days ago, I try something with ioctl-Commands (same Code as above) and this C-Programm: #include <stdio.h> #include <fcntl.h> #include <linux/ioctl.h> #define IOCTL_GETVALUE 0x0001 main() { int fd = open("/dev/Treiber", O_RDWR); ioctl(fd,...
by Kampi
Wed Jul 02, 2014 5:20 pm
Forum: C/C++
Topic: My first Driver
Replies: 10
Views: 2257

Re: My first Driver

Don´t understand what he was doing there and which Part is important for me :(
by Kampi
Wed Jul 02, 2014 4:44 pm
Forum: C/C++
Topic: My first Driver
Replies: 10
Views: 2257

Re: My first Driver

Hello, I want to set an GPIO in my Driver.: #include <linux/fs.h> #include <linux/version.h> #include <linux/module.h> #include <linux/init.h> #include <asm/uaccess.h> #include <linux/ioctl.h> #include <asm/io.h> // Peripherieinformationen #define Peripherie_Basis 0x7E000000 // Virtuelle Startadress...

Go to advanced search