Working on a neat little project that could ave use in a retail store. Using the Arduino to present either sales messsages or even as a “now serving” sign. The Arduino basically does a a page scrape from a predefined web page with the data needed to be output to a monitor. Much less hassle than using some kind of twiiter interface.

Screenshot from 2013-06-23 17:25:33

———————————————————————

Get video from your Arduino.

SUNP0074.JPG
Screenshot from 2013-06-27 02:45:17.png

With just a three line interface with two resisters, we output video to a composite monitor. Actually, we used an old B&W tv with a composite video input option, You can get more information at: http://playground.arduino.cc/Main/TVout.Note:You will have to download and install the tv.out libary. The site has all the details.————————————————————-

#include <TVout.h>

TVout TV;
unsigned char x, y;

void setup ( )
{
TV.start_render( _NTSC );
}

void loop ( )
{
TV.clear_screen ( );
TV.print_str ( 10, 10, “I love” );
TV.print_str ( 10, 20, “electronics,” );
TV.print_str ( 10, 30, “computers, and” );
TV.print_str ( 10, 40, “microcontrollers!” );
TV.delay ( 60 );
}

———————————————————————

Program in tiny basic on the Arduino.

basic.png
Screenshot from 2013-06-27 02:56:19.png

You can run basic programs on the arduino, but you can not save them on the original version. More information at:
http://ec2-122-248-210-243.ap-southeast-1.compute.amazonaws.com/mediawiki/index.php/Arduino_Basic#The_project_sketch_.2F_source_fileYou can ither install an rs232 converter and seriak terminal or you can use the serial monitor of the host computer with the Arduino IDE.

At the time of this writing I found a small bug in the code. (There may be others)
————————————————————
/

// TinyBASIC.cpp : An implementation of TinyBASIC in C
//
// Author : Mike Field - hamster@snap.net.nz
//
// Based on TinyBasic for 68000, by Gordon Brandly
// (see http://members.shaw.ca/gbrandly/68ktinyb.html)
//
// which itself was Derived from Palo Alto Tiny BASIC as 
// published in the May 1976 issue of Dr. Dobb's Journal.  
// 
// 0.03 21/01/2011 : Added INPUT routine 
//                 : Reorganised memory layout
//                 : Expanded all error messages
//                 : Break key added
//                 : Removed the calls to printf (left by debugging)

#ifndef ARDUINO
#include "stdafx.h"
#include <conio.h>
#endif 
f                                 //<<<<<<<<<<<<<< remove the letter "f"
// ASCII Characters
#define CR	'\r'
#define NL	'\n'
#define TAB	'\t'
#define BELL	'\b'
#define DEL	'\177'
#define SPACE   ' '
#define CTRLC	0x03
#define CTRLH	0x08
#define CTRLS	0x13
#define CTRLX	0x18

typedef short unsigned LINENUM;

———————————————————————

Just a few more calendar tricks:

$ cal 6 2013
     June 2013        
Su Mo Tu We Th Fr Sa  
                   1  
 2  3  4  5  6  7  8  
 9 10 11 12 13 14 15  
16 17 18 19 20 21 22  
23 24 25 26 27 28 29  
30                    
$ cal 2013
                            2013
      January               February               March          
Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa  
       1  2  3  4  5                  1  2                  1  2  
 6  7  8  9 10 11 12   3  4  5  6  7  8  9   3  4  5  6  7  8  9  
13 14 15 16 17 18 19  10 11 12 13 14 15 16  10 11 12 13 14 15 16  
20 21 22 23 24 25 26  17 18 19 20 21 22 23  17 18 19 20 21 22 23  
27 28 29 30 31        24 25 26 27 28        24 25 26 27 28 29 30  
                                            31                    

       April                  May                   June          
Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa  
    1  2  3  4  5  6            1  2  3  4                     1  
 7  8  9 10 11 12 13   5  6  7  8  9 10 11   2  3  4  5  6  7  8  
14 15 16 17 18 19 20  12 13 14 15 16 17 18   9 10 11 12 13 14 15  
21 22 23 24 25 26 27  19 20 21 22 23 24 25  16 17 18 19 20 21 22  
28 29 30              26 27 28 29 30 31     23 24 25 26 27 28 29  
                                            30                    

        July                 August              September        
Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa  
    1  2  3  4  5  6               1  2  3   1  2  3  4  5  6  7  
 7  8  9 10 11 12 13   4  5  6  7  8  9 10   8  9 10 11 12 13 14  
14 15 16 17 18 19 20  11 12 13 14 15 16 17  15 16 17 18 19 20 21  
21 22 23 24 25 26 27  18 19 20 21 22 23 24  22 23 24 25 26 27 28  
28 29 30 31           25 26 27 28 29 30 31  29 30                 

      October               November              December        
Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa  
       1  2  3  4  5                  1  2   1  2  3  4  5  6  7  
 6  7  8  9 10 11 12   3  4  5  6  7  8  9   8  9 10 11 12 13 14  
13 14 15 16 17 18 19  10 11 12 13 14 15 16  15 16 17 18 19 20 21  
20 21 22 23 24 25 26  17 18 19 20 21 22 23  22 23 24 25 26 27 28  
27 28 29 30 31        24 25 26 27 28 29 30  29 30 31              

$ ncal 6 2013
    June 2013         
Su     2  9 16 23 30
Mo     3 10 17 24   
Tu     4 11 18 25   
We     5 12 19 26   
Th     6 13 20 27   
Fr     7 14 21 28   
Sa  1  8 15 22 29   

$ ncal 2013
                                  2013
    January           February          March             April             
Su     6 13 20 27        3 10 17 24        3 10 17 24 31     7 14 21 28   
Mo     7 14 21 28        4 11 18 25        4 11 18 25     1  8 15 22 29   
Tu  1  8 15 22 29        5 12 19 26        5 12 19 26     2  9 16 23 30   
We  2  9 16 23 30        6 13 20 27        6 13 20 27     3 10 17 24      
Th  3 10 17 24 31        7 14 21 28        7 14 21 28     4 11 18 25      
Fr  4 11 18 25        1  8 15 22        1  8 15 22 29     5 12 19 26      
Sa  5 12 19 26        2  9 16 23        2  9 16 23 30     6 13 20 27      

    May               June              July              August            
Su     5 12 19 26        2  9 16 23 30     7 14 21 28        4 11 18 25   
Mo     6 13 20 27        3 10 17 24     1  8 15 22 29        5 12 19 26   
Tu     7 14 21 28        4 11 18 25     2  9 16 23 30        6 13 20 27   
We  1  8 15 22 29        5 12 19 26     3 10 17 24 31        7 14 21 28   
Th  2  9 16 23 30        6 13 20 27     4 11 18 25        1  8 15 22 29   
Fr  3 10 17 24 31        7 14 21 28     5 12 19 26        2  9 16 23 30   
Sa  4 11 18 25        1  8 15 22 29     6 13 20 27        3 10 17 24 31   

    September         October           November          December          
Su  1  8 15 22 29        6 13 20 27        3 10 17 24     1  8 15 22 29   
Mo  2  9 16 23 30        7 14 21 28        4 11 18 25     2  9 16 23 30   
Tu  3 10 17 24        1  8 15 22 29        5 12 19 26     3 10 17 24 31   
We  4 11 18 25        2  9 16 23 30        6 13 20 27     4 11 18 25      
Th  5 12 19 26        3 10 17 24 31        7 14 21 28     5 12 19 26      
Fr  6 13 20 27        4 11 18 25        1  8 15 22 29     6 13 20 27      
Sa  7 14 21 28        5 12 19 26        2  9 16 23 30     7 14 21 28

$ pal
     Su   Mo   Tu   We   Th   Fr   Sa |     Su   Mo   Tu   We   Th   Fr   Sa
Jun  23   24   25   26   27   28   29 |Aug  28   29   30   31   01   02   03 
Jul  30  @01@  02   03  U04S  05   06 |     04   05   06   07   08   09   10 
     07   08   09   10   11   12   13 |     11   12   13   14   15   16   17 
     14   15   16   17   18   19   20 |     18   19   20   21   22   23   24 
     21   22   23   24   25   26   27 |     25   26   27   28   29   30   31

$ wyrd

Screenshot from 2013-07-01 19:36:02

———————————————————————

Sometimes I would like to download a set of youtube files, but I do not want to sit and wait for all the downloads. So I create a text file with the video links. Then I set cron job to run a batch file that will automatically download the files at some other time say late at night when I am sleeping. (Good job for an older computer!!) When it is done, you should have a folder of the videos ready to watch at your convenience.

Getvids.sh
—————————————————————————–

#================================
#
# Get youtube videos
#
#=================================
# Assignments
# ——————————–
if [ -z “$1″ ]
then
datafile=”vidlist”
else
datafile=$1
fi
echo “You are using the datafile: $n.”

#=================================
#
# Data input
#———————————
while read line
do theurl=$line

youtube-dl $theurl -f 34

done < $datafile

—————————————————————————————–

Reactos, free Microsoft Windows NT clone.

Per their web page:ReactOS® is an effort to create a Free and Open Source replacement for the Microsoft Windows NT® family that is compatible with both applications and drivers. The NT® architecture has always been highly flexible and powerful and its continued dominance in the computer industry means it is one of the most supported family of operating systems in existence, with its latest iteration being Windows 8. As these days operating systems are little more than gateways to applications that users want to run, an open source NT implementation would allow users to continue using familiar programs in a familiar environment. The project seeks to embrace the strengths of the NT family while avoiding many of the configuration decisions that made older versions of Windows vulnerable and maintaining a lightweight environment so that a computer’s resources can be dedicated to what really matters to the user, running their applications.

If you have an older computer and really do not want to learn  a ‘nix operating system, but are familiar with Microsoft Windows products then consider Reactos. Have not used it in a while, but it seemed fairly compatible with the real thing. As long as you are not doing anything really serious with it, there should be no real challenges. Perfect for the kids so they can just fool around with it. Perfect way to use an older computer so the kids stay off your new computer. Could also probably be used for the older generation also. Try it! It’s free, but you need a system to download it and then install it on a cd.

—————————————————————————-

System requirements

The minimum requirements to install ReactOS are:

  • RAM: at least 64 MB, recommended: 256MB
  • Processor: x86 or x64 architecture, for more information see ReactOS ports
  • HDD: IDE/SATA with minimum 350 MB of free space on the primary partition (please note that some SATA controllers may not work with ReactOS)
    • FAT16/FAT32 primary boot partition
  • Video: VGA compatible video card (VESA BIOS version 2.0 or later)

—————————————————————————————–

Yankee Moo goo gai pan:

SUNP0048

Good day.

Advertisements