Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 16:04 26 Apr 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : SM1 Assistance Required

Author Message
Muttley Snicker

Newbie

Joined: 26/08/2011
Location: Australia
Posts: 18
Posted: 11:38pm 25 Aug 2011
Copy link to clipboard 
Print this post

Greeting All,
Don sent me over an Maximite SM1,A Cross Board and the LCD Sheild,
I've assembled the cross board and booted it all up but am not sure
what to do next, I have downloaded all of the libraries, manuals & Pics
for the SM1.
Don has been very patient & courteous but is just shy of telling me were to go.
Sorry he did tell me were to go, and here I am.
I hope to be able to configure the inputs and outputs initially to just
switch on say a LED on pin 11 if pin 1 goes low.
I am new to this and have never programmed Pics or AVRs although my initial
entry was via an Atmel STK-500 that someone gave me and then I got on to Don
to source some 8515 & 2313 ICs,I informed him that I have an application were
we need to display on say a 16 x 2 LCD a message to follow an input, example:

Input 1 goes low and the display reads "Alert Room 1"
Input 2 goes low and the display reads "Alert Room 2"

I am not quite ready for this just yet and just need a dummies introduction
to the maximite and its basic overview, I have read all of the documentation
and thought I could just type in PIN(1)then something else but I am now lost.
Hope someone can give me some guide. Regards & Many Thanks...Peter
Muttley Snickers
 
Muttley Snicker

Newbie

Joined: 26/08/2011
Location: Australia
Posts: 18
Posted: 12:08am 26 Aug 2011
Copy link to clipboard 
Print this post

My Note of the Day:

Politicians and Old People Should Be Drowned At Birth.
Muttley Snickers
 
BobDevries

Senior Member

Joined: 08/06/2011
Location: Australia
Posts: 266
Posted: 12:25am 26 Aug 2011
Copy link to clipboard 
Print this post

Hoy,

please defile OLD?

Regards,

Bob Devries
Dalby, QLD, Australia
 
sparkey

Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 819
Posted: 12:26am 26 Aug 2011
Copy link to clipboard 
Print this post

i would sugest getting copies of silicon chip mag there are thre of them that came out this year think mar/aprl/may somewthing like that i have a cross as well its a nice unit i have the lcd sheild you will find a test program floting around but its only for testing the switches u should get after running the program ...

press any key and that function should display on the lcd and it also generates a flow of numbers on the vga screen but they wont be on the lcd ....
technicians do it with least resistance
 
Gizmo

Admin Group

Joined: 05/06/2004
Location: Australia
Posts: 5012
Posted: 12:45am 26 Aug 2011
Copy link to clipboard 
Print this post

One of the best ways to learn is by example. Look at the example programs for the Maximite to get started, and start small with a couple of simple programs of your own.

Glenn
The best time to plant a tree was twenty years ago, the second best time is right now.
JAQ
 
Muttley Snicker

Newbie

Joined: 26/08/2011
Location: Australia
Posts: 18
Posted: 12:54am 26 Aug 2011
Copy link to clipboard 
Print this post

Thanks for the replies, Don did run me through a test were the word "hello"
was repeated, then I used Ctrl C to stop, I also managed to get the analogue
clock.BAS running but could only see part of the clock face.

I think I am missing something, do I need to install a GUI or interface program on
to the SD Card. I am running a Pentuim 4-3.0 Gig with XP Pro and the monitor I am
using is a Samsung CCTV LCD with VGA in for the PC and Composite in for the SM1,
This gives me a Picture in Picture overlay on the one monitor.
Muttley Snickers
 
Muttley Snicker

Newbie

Joined: 26/08/2011
Location: Australia
Posts: 18
Posted: 01:00am 26 Aug 2011
Copy link to clipboard 
Print this post

My second note for the day:

When I am paying out money, I am compleatly retarded,
When I am receiving money, I am ambidextrous.
Muttley Snickers
 
BobDevries

Senior Member

Joined: 08/06/2011
Location: Australia
Posts: 266
Posted: 01:04am 26 Aug 2011
Copy link to clipboard 
Print this post

Hello Muttley,

The analog clock was written for the VGA screen, and I'd imagine if you tried to run it on composite, it wouldn't display correctly.

Regards,

Bob Devries
Dalby, QLD, Australia
 
Muttley Snicker

Newbie

Joined: 26/08/2011
Location: Australia
Posts: 18
Posted: 01:41am 26 Aug 2011
Copy link to clipboard 
Print this post

My third note for the day:

I pay by cheque because my cash bounces.
Muttley Snickers
 
Muttley Snicker

Newbie

Joined: 26/08/2011
Location: Australia
Posts: 18
Posted: 02:23am 26 Aug 2011
Copy link to clipboard 
Print this post

I did see were someone tapped into the chip for RS 485,
this I assume could be handy to change the program midstream
by remote and view the change on the Maximite via an AV sender
on the composite out, sounds handy for a robot I think.
Muttley Snickers
 
sparkey

Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 819
Posted: 03:41am 26 Aug 2011
Copy link to clipboard 
Print this post

have you or are you able to get copies of mar/aprl/may sil chip this is the first thing i would recommend .... even though your running the "SM1" i have three of them an altro and a ev and i know the sm1 differs to the schem`s in sil chip there are basic programs that show simplistic facet`s of the maxi also go to geoff`s web site and sil chip web site there is stuff out there sometimes its hard to know where to start well get the mags and check the sites this is the best info .....

:::regards sparkeyEdited by sparkey 2011-08-27
technicians do it with least resistance
 
Muttley Snicker

Newbie

Joined: 26/08/2011
Location: Australia
Posts: 18
Posted: 08:15am 26 Aug 2011
Copy link to clipboard 
Print this post

I've been around a mates place and found that he still had the copies
of mar/aprl/may SC so I am currently studing.
I thought of another practical application, I could set up a set of PE
beams across the front lawn and when she say's "get off the computer and
mow the lawn" I could respond with "Maximite Say's No"
Muttley Snickers
 
Muttley Snicker

Newbie

Joined: 26/08/2011
Location: Australia
Posts: 18
Posted: 11:22pm 27 Aug 2011
Copy link to clipboard 
Print this post

Ok you blokes, the articles made all the difference
and the bourbon helped, It's all about the context
and I found out that sintacks matturs.

This is my first program and its an application that I
have practiced over the last 20 years, It's not for you
nerdy techo's and you wont be ready for this for a while yet.

Before we commence, a word of caution, the following may leed
to blown fuses, hearing lose and over temp issues, here we go.

10 IF DAY=SUNDAY AND TIME=11:30
20 THEN GOTO PUB
30 PAUSE 21600 PRINT "6 hours"
40 IF TIME=17:30 OR IF
50 BAR ROOM SPINS THEN RETURN TO HOME
60 IF HER INDOORS STARTS AND LEVEL=>100db
70 THEN GOTO BED OR RETURN TO PUB
80 IF LEVEL=>120db THEN RUN
90 REPEAT CYCLE TIME=168 HOURS
100 GOTO 10

Be careful as the process repeats evey week or until
the memory is empty. Regards...Pete

Muttley Snickers
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 11:54pm 27 Aug 2011
Copy link to clipboard 
Print this post

  Muttley Snicker said  
10 IF DAY=SUNDAY AND TIME=11:30
20 THEN GOTO PUB
30 PAUSE 21600 PRINT "6 hours"
40 IF TIME=17:30 OR IF
50 BAR ROOM SPINS THEN RETURN TO HOME
60 IF HER INDOORS STARTS AND LEVEL=>100db
70 THEN GOTO BED OR RETURN TO PUB
80 IF LEVEL=>120db THEN RUN
90 REPEAT CYCLE TIME=168 HOURS
100 GOTO 10

Be careful as the process repeats evey week or until
the memory is empty. Regards...Pete


Hi Pete,

I think your program have a limited number of cycles but it may increase significantly if you repeat on a higher level the BED subroutine (at least, this is what my wife said - well, I didn't know she is so good at programming ).
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
Muttley Snicker

Newbie

Joined: 26/08/2011
Location: Australia
Posts: 18
Posted: 12:20am 28 Aug 2011
Copy link to clipboard 
Print this post

Greetings Vasi,
Im only new to this and have many questions all of which
may seem very simple and basic to you advanced users.

Can you assist with the following:

Is the maximite able to read TTL level rotary encoders
and display on a 16 x 2 LCD similar to a mill, lathe
or CNC DRO. Regards Pete.(posted on Dons Page)

Also are outputs able to be toggled in the one string
example:

10 PIN(12(13)(14)=0

MANY THANKS...Pete

Muttley Snickers
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 01:34am 28 Aug 2011
Copy link to clipboard 
Print this post

Hi Pete,

I'm not a Basic advanced user
I have not yet a compatible Maximite board so not studied yet the MMBasic.

Yes, Maximite is able to read encoders and display on an LCD though, I never worked with an encoder (I suppose it have a pulse system and a sense system or is just simple as an mouse axis encoder).

You can use multiple commands on a line if separated correctly. Every official Maximite come with a documentation regarding to the Language commands and syntax.

Vasi

__________________________
http://www.smashtv.org/physcomp/technotes/rotaryencoder.html

http://www.picbasic.co.uk/forum/showthread.php?t=1552&page=1 Edited by vasi 2011-08-29
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024