Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 04:31 08 Jul 2025 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 : Micromite Beta 6

     Page 4 of 9    
Author Message
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4036
Posted: 11:34pm 14 Feb 2014
Copy link to clipboard 
Print this post

Is IR the way to go?

I've used NRF24L01+ (not on mites), maybe a better choice?

I see some very cheap 433MHz & 315MHz things, too, but don't look to be bidirectional.

John
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9590
Posted: 11:54pm 14 Feb 2014
Copy link to clipboard 
Print this post

I was wondering about RF modules too - LOTS to choose from these days, many of them are very cheap, but perform well.

I suppose if the IR thing was implemented, it can all be done via the uM chip and an IR LED vs RF module, which would no doubt be cheaper(the IR way).

Smoke makes things work. When the smoke gets out, it stops!
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 11:57pm 14 Feb 2014
Copy link to clipboard 
Print this post

I have used those NRF24L01+ many times, i even have a few hundred lying around to be used soon.
The NRF chip is not easy at all, only on the arduino i got it to work thanks to someones hard work making a library.
I will try to get it to work through BASIC, but it won't be quick and easy. That is not necessarily a bad thing because meanwhile you learn a lot.

If the uMite has both a receive and send over IR then using it will be super easy.
The same for the NRF chips, but that kind of software is better done at a lower level.
And i think the available bytes are running low already. :)




Microblocks. Build with logic.
 
bigmik

Guru

Joined: 20/06/2011
Location: Australia
Posts: 2949
Posted: 12:06am 15 Feb 2014
Copy link to clipboard 
Print this post

Lads,

Of course if a learning IR mode was implemented a uMite could be the basis of a home media centre controller..

One press of a uMite button could turn on the TV select the appropriate input then turn on the Bluray player then turn on the amplifier and select the correct mode....


Would make it easy for the missus to play bambi for the kids when we are at work...

Who hasnt been frustrated by a phone call... which remote do I use?? Its not working!!! etc?


regards,

MickEdited by bigmik 2014-02-16
Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3282
Posted: 02:16am 15 Feb 2014
Copy link to clipboard 
Print this post

OK, I am implementing IR SEND using the Sony protocol - nearly finished.

I don't think that an IR learning command will be practical. As far as I know learning remotes work by recording the incoming stream of IR pulses for each key as a sequence of numbers. For example, high for 1200uS, low for 300uS, high for 600uS, etc.

Most codes are 15 or 20 bits long so one key would use 60 to 80 bytes of memory. I guess that if you wanted to only store 10 or 20 keys you could do it but it would be messy in a chip that is supposed to be an easy to program microcontroller - not a remote control.

  Quote  One press of a uMite button could turn on the TV select the appropriate input then turn on the Bluray player then turn on the amplifier and select the correct mode....

Mike, you should get yourself a Harmony remote control, they are expensive but they do exactly that - and with one key press. I have one and it is magic.

Geoff
Geoff Graham - http://geoffg.net
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 724
Posted: 06:00am 15 Feb 2014
Copy link to clipboard 
Print this post

Where to store constants ?

Hello experts,

i need to store some constants, which are available after boot.

How can i do this ???

DS
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 06:26am 15 Feb 2014
Copy link to clipboard 
Print this post

You could use VAR SAVE to store some variables in flash.
You can retrieve them with VAR RESTORE.

I am only not sure if you really mean constants, because those never change and are normally a part of a program, usually at the beginning.
If you mean that then all you have to do is define some variables with the needed values.

Microblocks. Build with logic.
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 724
Posted: 07:06am 15 Feb 2014
Copy link to clipboard 
Print this post

Thank you for your help.

Yes i need to initialize a temperature controll with a variable "constant" tha must be updatet in Flash, when the user changes it in the program.
So i have to write it to the Flash.

VAR save/restore is exactly what i need.

Thank you very much.

DS



  TZAdvantage said   You could use VAR SAVE to store some variables in flash.
You can retrieve them with VAR RESTORE.

I am only not sure if you really mean constants, because those never change and are normally a part of a program, usually at the beginning.
If you mean that then all you have to do is define some variables with the needed values.
 
dmasz
Newbie

Joined: 12/09/2013
Location: Poland
Posts: 21
Posted: 11:52am 15 Feb 2014
Copy link to clipboard 
Print this post

Hi All,

As I would like to get involved in to beta testing of MicroMite
where i can find board layout to build micromite board and part list?

could you advice?

br
Dan
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9590
Posted: 12:28pm 15 Feb 2014
Copy link to clipboard 
Print this post

Hi there, and welcome aboard the forums.
If you send a PM to Geoff(Geoffg - scroll up to his last post and click the PM button at the bottom of his post), and include your name and email address, he will probably send you the latest Beta and manual, depending on how close to final he thinks the uM chip now is.

All you need for basic breadboard Beta testing, is the chip, a 10k resistor, and a PICKIT3 programmer. Parts list and circuit-diagram is all in the manual that comes as part of the Beta. You will also need the X-IDE software package from Microchip, which is free - perhaps you already have a PICKIT3 and the IDE software... Edited by Grogster 2014-02-16
Smoke makes things work. When the smoke gets out, it stops!
 
bigmik

Guru

Joined: 20/06/2011
Location: Australia
Posts: 2949
Posted: 02:49pm 15 Feb 2014
Copy link to clipboard 
Print this post

  Geoffg said  
I don't think that an IR learning command will be practical.


Mike, you should get yourself a Harmony remote control, they are expensive but they do exactly that - and with one key press. I have one and it is magic.

Geoff


Hi Geoff,

Yes probably impractical to implement learning mode due to data size etc... I was speaking from ignorance (as usual)

With the Harmony, that was basically what I had in mind... I had a harmony 525 but it was near useless because I couldnt read the itty bitty text on the screen... I think the harmony ONE and a couple of top end units would be really good but they are very expensive... Hence the thought to use a $10 uMite but no drama

Great to implement IR SEND... I will certainly have a play with it.

Regards,

Mick


Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
jman

Guru

Joined: 12/06/2011
Location: New Zealand
Posts: 711
Posted: 06:00pm 15 Feb 2014
Copy link to clipboard 
Print this post

Possible bug

Send attached file to MicroMite
list and note the last couple of lines (normal at this stage)
edit
scroll to bottom of program confirm lines as per list
scroll up a few lines (Random amount)
edit a line or add a line (anything)
F1 to save
list and notice the last few lines
edit
scroll to the bottom and last few lines are missing or garbage

2014-02-16_035647_Odd1.zip








Regards
Jman
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6269
Posted: 08:29pm 15 Feb 2014
Copy link to clipboard 
Print this post

  jman said   Possible bug

Jman

Well, I did get the error you are describing a few times but after I added a CR to the end of the file, I was unable to reproduce the error.

Jim
VK7JH
MMedit
 
Sir_M
Newbie

Joined: 14/01/2013
Location: Sweden
Posts: 15
Posted: 12:05am 16 Feb 2014
Copy link to clipboard 
Print this post

Hello all.

Between celebrating Swedish medals in Olympic Games I downloaded Beta6.
I found that the editor is acting a bit weird. When scrolling, it stops at line 21 and just updating the next coming lines (22,23, etc). Lines above don’t scroll at all. I´ve got one uMite that runs Beta4 working ok. I switched pic and used the same breadboard and setup so I am quite sure that it has to be something in Beta 6.

/ Jörgen
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3282
Posted: 02:54am 16 Feb 2014
Copy link to clipboard 
Print this post

You must have your terminal emulator set to the same number of lines as the Micromite (which defaults to 24). You can change the number of lines that the Micromire uses with OPTION LINES.

If you don't do this you will get strange results when you use the editor (like above).

Before beta 6 the editor would completely redrew the screen to scroll just one line, which was very inefficient. Now it lets the terminal emulator do the scrolling but this requires that both the emulator and the Micromite use the same number of lines per screen.

There is a note on this subject (in bold) in the new manual but I can see that it will catch a lot of people out.

So everyone, please make sure that the emulator and the Micromite agree on the number of lines in a screen.

GeoffEdited by Geoffg 2014-02-17
Geoff Graham - http://geoffg.net
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3282
Posted: 03:22am 16 Feb 2014
Copy link to clipboard 
Print this post

I have had a brilliant idea (if I say so myself) which removes the dependence on the emulator and the Micromite having the same number of lines. I will put it into beta 7 so the above only applies to beta 6.

Geoff
Geoff Graham - http://geoffg.net
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3282
Posted: 04:06am 16 Feb 2014
Copy link to clipboard 
Print this post

  jman said   Possible bug

Send attached file to MicroMite
list and note the last couple of lines (normal at this stage)
edit
scroll to bottom of program confirm lines as per list
scroll up a few lines (Random amount)
edit a line or add a line (anything)
F1 to save
list and notice the last few lines
edit
scroll to the bottom and last few lines are missing or garbage

Thanks John, that is a bug.

It was caused by the program being very close to a 1KB boundary (the file was almost exactly 3KB in length).

I have fixed the bug for the next beta. In the meantime the workaround is to append about 50 characters to the end of the file (ie, a comment line of 50 chars). This is only necessary if you strike this issue, which will not be often.

Huge thanks for the precise instructions on reproducing the issue. That made it so easy to find and fix it.

GeoffEdited by Geoffg 2014-02-17
Geoff Graham - http://geoffg.net
 
plasma
Guru

Joined: 08/04/2012
Location: Germany
Posts: 437
Posted: 10:11am 17 Feb 2014
Copy link to clipboard 
Print this post

hi,
in beta 6

ill guess i found a bug ,sorry geoff


dim a$(6) length 6


shows me 186536% in general ram


iam really interested for the ir receiver as Geoff shows in the beta 6 manual ,but unfortunately i
cant get this in germany .
can i use other receivers ?

Edited by plasma 2014-02-18
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 724
Posted: 10:47am 17 Feb 2014
Copy link to clipboard 
Print this post

? What do you mean with this ?


  plasma said   hi,
in beta 6

ill guess i found a bug ,sorry geoff


dim a$(6) length 6


shows me 186536% in general ram


iam really interested for the ir receiver as Geoff shows in the beta 6 manual ,but unfortunately i
cant get this in germany .
can i use other receivers ?

 
plasma
Guru

Joined: 08/04/2012
Location: Germany
Posts: 437
Posted: 11:02am 17 Feb 2014
Copy link to clipboard 
Print this post

sry

after the dim use the micromite memory command to show the available ram.
 
     Page 4 of 9    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025