LCD Display zeigt kein Text an (Display leuchtet + Kontrast angepasst)?

Hallo liebe GuteFrage-Community,

ich habe mir ein Raspberry Pi 3 B+ besorgt, dazu noch ein HD44780 2004 LCD Display (4x20) und weitere Kleinteile. Aber nachdem ich mein LCD mit dem I2C-Interface verlötet habe, GND zu Ground; VCC zu 5V; SDA zu SDA (GPIO 2); SCL zu SCL (GPIO 3) verband, den Kontrast angepasst und ein kleines Script via C# schrieb, erschien auf dem Display nichts.

Anfangs wollte ich die Zeit anzeigen lassen, da kamen aber nur hin und wieder °-Zeichen. Übrigens habe ich in Visual Studio das Paket Iot.Device.Bindings heruntergeladen. Beim Veröffentlichen habe ich das Script als Release, das Zielframework netcoreapp3.1 und bei der Zielruntime linux-arm festgelegt. Auf dem Raspberry Pi habe ich natürlich auch schon das dotnet Framework 3.1.100 heruntergeladen.

Ich habe keine Idee an was das liegt. Hoffe auf schnelle und hilfreiche Antworten.

Freundliche Grüße

Nico

using System;
using System.Device.Gpio;
using System.Device.I2c;
using System.Threading;
using Iot.Device.CharacterLcd;
using Iot.Device.Pcx857x;

namespace L2C
{
  class Program
  {

    static void Main(string[] args)
    {
      using I2cDevice i2c = I2cDevice.Create(new I2cConnectionSettings(1, 0x27));
      using var driver = new Pcf8574(i2c);
      using var lcd = new Lcd2004(registerSelectPin: 0,
                  enablePin: 2,
                  dataPins: new int[] { 4, 5, 6, 7 },
                  backlightPin: 3,
                  backlightBrightness: 0.1f,
                  readWritePin: 1,
                  controller: new GpioController(PinNumberingScheme.Logical, driver));

      int _counter = 0;

      while (true)
      {
        lcd.Clear();
        lcd.Write(_counter.ToString());
        _counter++;
        Thread.Sleep(1000);
      }
    }
  }
}
Display, Technik, Programmieren, C Sharp, LCD-Display, Raspberry Pi 3
0 Antworten
Apache Fehler?

Hallo Leute,

ich habe auf meinem rpi raspbian buster und darauf apache2 installiert. DOch wenn ich den starten will sagt es dies:

● apache2.service - The Apache HTTP Server

  Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset:

  Active: failed (Result: exit-code) since Mon 2019-12-16 20:33:05 CET; 4min 46

    Docs: https://httpd.apache.org/docs/2.4/

 Process: 577 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILUR

Dec 16 20:33:05 RASPI-USB apachectl[577]: AH00558: apache2: Could not reliably d

Dec 16 20:33:05 RASPI-USB apachectl[577]: (2)No such file or directory: AH02291:

Dec 16 20:33:05 RASPI-USB apachectl[577]: (2)No such file or directory: AH02291:

Dec 16 20:33:05 RASPI-USB apachectl[577]: (2)No such file or directory: AH02291:

Dec 16 20:33:05 RASPI-USB apachectl[577]: AH00014: Configuration check failed

Dec 16 20:33:05 RASPI-USB apachectl[577]: Action 'start' failed.

Dec 16 20:33:05 RASPI-USB apachectl[577]: The Apache error log may have more inf

Dec 16 20:33:05 RASPI-USB systemd[1]: apache2.service: Control process exited, c

Dec 16 20:33:05 RASPI-USB systemd[1]: apache2.service: Failed with result 'exit-

Dec 16 20:33:05 RASPI-USB systemd[1]: Failed to start The Apache HTTP Server.

...skipping...

● apache2.service - The Apache HTTP Server

  Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset:

  Active: failed (Result: exit-code) since Mon 2019-12-16 20:33:05 CET; 4min 46

    Docs: https://httpd.apache.org/docs/2.4/

 Process: 577 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILUR

Dec 16 20:33:05 RASPI-USB apachectl[577]: AH00558: apache2: Could not reliably d

Dec 16 20:33:05 RASPI-USB apachectl[577]: (2)No such file or directory: AH02291:

Dec 16 20:33:05 RASPI-USB apachectl[577]: (2)No such file or directory: AH02291:

Dec 16 20:33:05 RASPI-USB apachectl[577]: (2)No such file or directory: AH02291:

Dec 16 20:33:05 RASPI-USB apachectl[577]: AH00014: Configuration check failed

Dec 16 20:33:05 RASPI-USB apachectl[577]: Action 'start' failed.

Dec 16 20:33:05 RASPI-USB apachectl[577]: The Apache error log may have more inf

Dec 16 20:33:05 RASPI-USB systemd[1]: apache2.service: Control process exited, c

Dec 16 20:33:05 RASPI-USB systemd[1]: apache2.service: Failed with result 'exit-

Dec 16 20:33:05 RASPI-USB systemd[1]: Failed to start The Apache HTTP Server.

ich habe auch es auch schon mit erstellen des verzeichnises probiert, aber nach einem neustart muss ich dies wieder tun. wie behebe ich dies dauerhaft?

Gruß

Platofan23

PC, Computer, Technik, Fehler, Apache, Techniker, Webserver, Raspberry Pi, Raspberry Pi 3
2 Antworten
Raspberry Pi / Blynk: Kann mir jemand diesen Sourcecode erklären?

Hi,

ich bin neu im Bereich Programmieren und habe eine Frage zu einem Sourcecode. Welcher Teil bedeutet was? Wie wird der Code mit den GitHub Libraries kommunizieren? Und was bedeutet //, * und #?

// Viral science www.youtube.com/c/viralscience
// Temperature sensor
/*
 * Blynk is a platform with iOS and Android apps to control
 * Arduino, Raspberry Pi and the likes over the Internet.
 * You can easily build graphic interfaces for all your
 * projects by simply dragging and dropping widgets.
 
   Downloads, docs, tutorials: http://www.blynk.cc
   Blynk community:      http://community.blynk.cc
   Social networks:      
 * http://www.fb.com/blynkapp
   http://twitter.com/blynk_app
 
 * Blynk library is licensed under MIT license
 * This example code is in public domain.
 
 * This example shows how value can be pushed from Arduino to
 * the Blynk App.
 
 * WARNING :
 * For this example you'll need SimpleTimer library:
   https://github.com/jfturcot/SimpleTimer
 * and Adafruit DHT sensor library:
   https://github.com/adafruit/DHT-sensor-library
 
 * App project setup:
   Value Display widget attached to V5
   Value Display widget attached to V6
 */
#define BLYNK_PRINT Serial  // Comment this out to disable prints and save space

#include <SPI.h>
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <SimpleTimer.h>
#include <DHT.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "    "; // Enter the Auth code which was send by Blink

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "   "; //Enter your WIFI Name
char pass[] = "   "; //Enter your WIFI Password

#define DHTPIN 2     // Digital pin 4

// Uncomment whatever type you're using!
#define DHTTYPE DHT11   // DHT 11
//#define DHTTYPE DHT22  // DHT 22, AM2302, AM2321
//#define DHTTYPE DHT21  // DHT 21, AM2301
DHT dht(DHTPIN, DHTTYPE);
SimpleTimer timer;

// This function sends Arduino's up time every second to Virtual Pin (5).
// In the app, Widget's reading frequency should be set to PUSH. This means
// that you define how often to send data to Blynk App.
void sendSensor()
{
  float h = dht.readHumidity();
  float t = dht.readTemperature(); // or dht.readTemperature(true) for Fahrenheit

  if (isnan(h) || isnan(t)) {
    Serial.println("Failed to read from DHT sensor!");
    return;
  }

  // You can send any value at any time.
  // Please don't send more that 10 values per second.
  Blynk.virtualWrite(V5, h); // V5 is for Humidity
  Blynk.virtualWrite(V6, t); // V6 is for Temperature
}

void setup()
{
  Serial.begin(9600); // See the connection status in Serial Monitor
  Blynk.begin(auth, ssid, pass);
  dht.begin();

  // Setup a function to be called every second
  timer.setInterval(1000L, sendSensor);
}

void loop()
{
  Blynk.run(); // Initiates Blynk
  timer.run(); // Initiates SimpleTimer
}
Computer, Technik, Programmieren, esp, Physik, ESP8266, Raspberry Pi 3
2 Antworten
Python function wird zweimal aufgerufen?

Guten Morgen,

Ich habe ein problem mit meinem skript. Ich möchte gerne, dass wenn man einen kliptaster betätigt dieser in einem array gespeichert wird. Leider wird die Zahl des Tasters doppelt im array angezeigt. Er ruft bei mir die function zweimal auf.

import RPi.GPIO as GPIO # Import Raspberry Pi GPIO library
import time
import sys, traceback
 
#https://raspberrypihq.com/use-a-push-button-with-raspberry-pi-gpio/
 
tastenSeq=[]
 
 
def button_callback(channel):
       print("Taster 2: AN")
       GPIO.output(12,True)
       tastenSeq.append(2)
       time.sleep(1.0)
       GPIO.output(12,False)
       print("Taster 2: AUS")
 
 
def button_callback2(channel2):
       print("Taster 5: AN")
       GPIO.output(32,True)
       tastenSeq.append(5)
       time.sleep(1.0)
       GPIO.output(32,False)
       print("Taster 5: AUS")
       print tastenSeq
 
GPIO.setmode(GPIO.BOARD)
GPIO.setup(12,GPIO.OUT)
GPIO.setup(32,GPIO.OUT)
 
GPIO.setwarnings(False) # Ignore warning for now
#GPIO.setmode(GPIO.BOARD) # Use physical pin numbering
 
GPIO.setup(31, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) # Set pin 10 to be an input pin and set initial value to be pulled low (off)
GPIO.add_event_detect(31,GPIO.RISING,button_callback) # Setup event on pin 10 rising edge
 
 
GPIO.setup(15, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) # Set pin 10 to be an input p$
GPIO.add_event_detect(15,GPIO.RISING,callback=button_callback2) # Setup event on p$
 
message = input("Press enter to quit\n\n") # Run until someone presses enter
GPIO.cleanup() # Clean up

 

 

Python function wird zweimal aufgerufen?
Computer, Computerspiele, Programmieren, Informatik, Python3, Raspberry Pi, Raspberry, Raspberry Pi 3
5 Antworten
RB pi 3b+ libreelec?

Kann mir jemand sagen was folgender Fehler bedeutet.

Im Raspberry pi3b+ ist eine 32GB Karte drin mit LibreELEC.

Und auf dem Internen Speicher habe ich noch 750mb frei.

ssh out:                                       1.0%tar: can't create directory 'hyperion/': No space left on device

ssh out: tar: can't open 'hyperion/': Is a directory

ssh out: curl: (23) Failed writing body (4096 != 16384)

ssh in: ---> Downloading Hyperion OpenELEC/LibreELEC dependencies

ssh out: tar: can't change directory to '/storage/hyperion/bin': No such file or directory

ssh out: #=#=#                                     

ssh out: ##O#- #                                    

ssh out: ##O=# #                                    

ssh out: ######################################################################## 100.0%

ssh out: ######################################################################## 100.0%#=#=-# #                                   

ssh out: #=#=-#  #                                  

ssh out: -#O#- #  #                                 

ssh out: ######################################################################## 100.0% -=#=-# #  #                                

ssh out:                                       0.2%

ssh out: curl: (23) Failed writing body (0 != 16384)

ssh out: chmod: /storage/hyperion/bin: No such file or directory

ssh in: ---> Adding Hyperion to OpenELEC/LibreELEC autostart.sh

ssh out: sh: write error: No space left on device

ssh out: rm: can't remove '/storage/hyperion/services': No such file or directory

ssh in: ---> Starting Hyperion

ssh in:

ssh in: Hyperion Installation/Update finished!

ssh in: Please download the latest HyperCon version to benefit from new features!

ssh in: To create a config, follow the HyperCon Guide at our Wiki (EN/DE)!

ssh in: Wiki: wiki.hyperion-project.org Webpage:www.hyperion-project.orgg

ssh in:

Da ich neu auf dem gebiet bin, bitte ich (wenn es geht) um ausführliche hilfe :)

Danke vielmals

Ambilight, Raspberry Pi 3
1 Antwort
Hyperion/Hypercon ssh verbindung nicht möglich zu RB pi3b+?

Hallo Community,

bei meinem Ambilight Nachbau habe ich folgenden Fehler wenn ich via ssh Verbindung eine Hyperion konfigurations- Datei senden möchte.

SSH Traffic:

ssh connected

ssh out: cd /tmp && wget -nv -N https://raw.github.com/hyperion-project/hyperion/master/bin/install_hyperion.sh && chmod +x install_hyperion.sh && sudo sh ./install_hyperion.sh HyperConInstall ; rm install_hyperion.sh

ssh out: wget: invalid option -- 'N'

ssh out: BusyBox v1.25.1 (2018-03-24 15:42:39 GMT) multi-call binary.

ssh out: Usage: wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE]

ssh out: [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]

ssh out: [-U|--user-agent AGENT] [-T SEC] URL...

ssh out: Retrieve files via HTTP or FTP

ssh out: -s Spider mode - only check file existence

ssh out: -c Continue retrieval of aborted transfer

ssh out: -q Quiet

ssh out: -P DIR Save to DIR (default .)

ssh out: -T SEC Network read timeout is SEC seconds

ssh out: -O FILE Save to FILE ('-' for stdout)

ssh out: -U STR Use STR for User-Agent header

ssh out: -Y Use proxy ('on' or 'off')

ssh out: rm: can't remove 'install_hyperion.sh': No such file or directory

ssh out: cd /tmp && wget -nv -N https://raw.github.com/hyperion-project/hyperion/master/bin/install_hyperion.sh && chmod +x install_hyperion.sh && sudo sh ./install_hyperion.sh HyperConInstall ; rm install_hyperion.sh

ssh out: wget: invalid option -- 'N'

ssh out: BusyBox v1.25.1 (2018-03-24 15:42:39 GMT) multi-call binary.

ssh out: Usage: wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE]

ssh out: [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]

ssh out: [-U|--user-agent AGENT] [-T SEC] URL...

ssh out: Retrieve files via HTTP or FTP

ssh out: -s Spider mode - only check file existence

ssh out: -c Continue retrieval of aborted transfer

ssh out: -q Quiet

ssh out: -P DIR Save to DIR (default .)

ssh out: -T SEC Network read timeout is SEC seconds

ssh out: -O FILE Save to FILE ('-' for stdout)

ssh out: -U STR Use STR for User-Agent header

ssh out: -Y Use proxy ('on' or 'off')

ssh out: rm: can't remove 'install_hyperion.sh': No such file or directory

sftp Send Hyperion Config - Sourcepath: C:/Users/Lisa/Desktop, Targetpath: /etc/hyperion/, Filename: hyperion.config.json

Das Protokoll ist so voll da ich es ein paar mal probiert habe.

Danke für die schnelle Hilfe

IT, ssh, Windows 8, Ambilight, Raspberry Pi 3
1 Antwort

Meistgelesene Fragen zum Thema Raspberry Pi 3