Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - peter

Pages: [1]
1
OLEDs / Re: NHD-2.8-25664UCB2 goes dark under heavy updates
« on: December 08, 2016, 12:54:00 PM »
Hello Paul,

If you provide an email address I can send you the our entire library along with schematics.

I access the library via TCL

proc initialize_display {} {
   global textSize
   # 12.5MHz
   oled begin 12500000 1
    
        oled set_text_size $textSize
}

#####################################################################
#
# Used for pointing the dish at the satellite.  Shows target satellite,
# current position, and RSSI (Receive Signal Strength Indicator)
#
# This screen can not be "SELECTED", there isn't anything for the user to
# accomplish except move the antenna by hand.
#
#####################################################################
proc satellite_tuning_screen { userdata } {
   # display size 64 X 256

   global highlightTitle
   global target_elevation
   global target_azimuth
   
   if { ![get_var printingToDisplay] } {
      debug "printing to display [get_var printingToDisplay]"
      set_var printingToDisplay 1
      
         
       if { ![get_var in_satellite_tuning_screen] } {
                set_screen_selection_false
                set_var in_satellite_tuning_screen "true"
       }
       
            oled clear_display_buffer

            oled set_text_size 1

            print_text_location 80 0 "Elevation"
            print_text_location 150 0 "Azimuth"
         
            print_text_location 10 16 "Target"
            print_text_location 80 16  [get_var target_elevation]
            print_text_location 150 16 [get_var target_azimuth]
   
            print_text_location 10 32 "Current"
            print_text_location 80 32  [get_var compass_elevation]
            print_text_location 150 32 [get_var compass_azimuth]

            print_text_location 10 48 "RSSI"
            print_text_location 60 48 [get_var rssi]

            oled display
   
       set_var printingToDisplay 0

   } else {
      debug "Display update was stoped becaus another display update was in progress!!!!"
   }
   
   
}

2
OLEDs / NHD-2.8-25664UCB2 goes dark under heavy updates
« on: December 08, 2016, 09:38:34 AM »
I am using the NHD-2.8-25664UCB2 as the main user feedback during the satellite antenna pointing exercise.  The user needs to know where the antenna should point (azimuth and elevation), where it is currently pointing, and what the current receive signal strength might be.  The updates to three of these items can happen 7 times per second.

I am using:
   Adafruit library
   SPI 4 wire interface
   TS-4600 SBC (https://www.embeddedarm.com/products/TS-4600)

The OLED will go blank (black with no text) or it will freeze after an unspecified amount of time.  The underlying application is still running, we know this through the debian linux OS and with an oscilloscope checking the SCLK, SDIN, DC, CS signals on the display.

The display buffer is cleared before every write to the display, and only one display update can be performed at a time.
I have other configuration / information screens that are accessed through a keypad.  Any of those screen images will display for hours, even days without any issues.

Pages: [1]