Hooking Up An Old SONY CRT Viewfinder To Arduino

Hooking Up An Old SONY CRT Viewfinder To Arduino © CC BY

Hooking up an old SONY CRT viewfinder to Arduino.

  • 2,916 views
  • 1 comment
  • 18 respects

Components and supplies

SONY viewfinder mod. VF-240
×1
A000066 iso both
Arduino UNO & Genuino UNO
×1

About this project

Hooking an old SONY CRT viewfinder to Arduino

Here's how to hook-up and drive an old CRT viewfinder and any composite input monitor.

Library Reference

http://code.google.com/p/arduino-tvout/

Code

Analog input formatting and displayArduino
#include <TVout.h>
#include <fontALL.h>

float an0;
float an1;
float an2;
float an3;
float an4;
float an5;
char an0f[8];
char an1f[8];
char an2f[8];
char an3f[8];
char an4f[8];
char an5f[8];


TVout TV;

void setup() {
  TV.begin(PAL,136,96);
  TV.select_font(font8x8ext);
  TV.set_cursor(0,0);
  TV.print("AI 0:   ");
  TV.set_cursor(0,15);
  TV.print("AI 1:   ");
  TV.set_cursor(0,30);  
  TV.print("AI 2:   ");
  TV.set_cursor(0,45);  
  TV.print("AI 3:   ");
  TV.set_cursor(0,60);  
  TV.print("AI 4:   ");
  TV.set_cursor(0,75);  
  TV.print("AI 5:   ");
   
  }
  
  void loop() {    
    an0 = analogRead(A0) / 1023.00 * 5.00;
    an1 = analogRead(A1) / 1023.00 * 5.00;    
    an2 = analogRead(A2) / 1023.00 * 5.00;    
    an3 = analogRead(A3) / 1023.00 * 5.00;    
    an4 = analogRead(A4) / 1023.00 * 5.00;    
    an5 = analogRead(A5) / 1023.00 * 5.00;    

  dtostrf(an0,7, 2, an0f);
  dtostrf(an1,7, 2, an1f);
  dtostrf(an2,7, 2, an2f);
  dtostrf(an3,7, 2, an3f);
  dtostrf(an4,7, 2, an4f);
  dtostrf(an5,7, 2, an5f);

    TV.set_cursor(75,0);
    TV.println(an0f);
    TV.set_cursor(75,15);
    TV.println(an1f);
    TV.set_cursor(75,30);
    TV.println(an2f);
    TV.set_cursor(75,45);
    TV.println(an3f);
    TV.set_cursor(75,60);
    TV.println(an4f);
    TV.set_cursor(75,75);
    TV.println(an5f);
   
    delay(50);  
    
 }

Comments

Similar projects you might like

Rule Sony Car Stereo Display with LC75829

by pdio

  • 1,641 views
  • 0 comments
  • 8 respects

Use a PC Fan as a Sensor

by Daniel Porrey

  • 48,780 views
  • 22 comments
  • 100 respects

Displaying Sensor Values on LCD

by Wimpie van den Berg

  • 42,771 views
  • 4 comments
  • 36 respects

LCD (Liquid Crystal Display)

by MicroBob

  • 30,781 views
  • 41 comments
  • 101 respects

Distance Sensor and OLED

Project tutorial by javier muñoz sáez

  • 22,053 views
  • 22 comments
  • 65 respects

Digital Clock with Mirrored Display Driven by Accelerometers

Project showcase by LAGSILVA

  • 14,365 views
  • 1 comment
  • 38 respects
Add projectSign up / Login