Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / One Wire Weather Station project (open source)

Author
Message
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 6th Apr 2007 06:37
I see, so you've had the fun of taking one a part, been think of taking one I have a part to fix on my telescope, but most of the web pages on doing this, get me a little lost on how they fix it to the telescope.

1. do I mount it on the eye piece.
2. do I mount it on the eye shaft.
3. do I leave the lens in the webcam or remove it.

other stuff.
Did you ever get to use the 6502 cpu that was in the uk101 and the BBC 32k and Acorn computers.

Dark Physics makes any hot drink go cold.
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 6th Apr 2007 23:00 Edited at: 7th Apr 2007 10:31
No, I was a Z-80 guy back then. (Still need to learn CP/M better, however!) My Commodore64 and Apple IIe friends had quite alot to say about that choice. I still like my TS2068, and I think Sir Clive Sinclair is much smarter than Steve Jobs, at least. (His zPod would roundly kick the iPod's arse, imo.) Besides, he was knighted before they started giving away knighthood in cereal boxes.

Yes to all of those questions! Mounting the eyepiece to the camera by means of a shaft that holds the camera at the bitter end, and the eyepiece at the other is called eyepiece projection. That is for bright telescopes and excellent cameras primarily. Meade, and others sell adapters for that, but PVC is popular, too.

Most lenses on webcams are plastic, and not so good. Also, there is usually an IR filter, (its red, naturally). mounted right over the CCD. Most cameras now have a plastic mount held to the circuit board with two screws. My latest surgery found the IR filter under that. I will take some pics of it, and post that up. That lens holder is threaded, and 3Com at least sold a three lens set for it...very nice, about $60USD, but that was 6 years ago. Anyway, some of them use a lens that is coated with the IR filter...they are also red.

The brightest, and best results will be obtained by removing that cover and IR filter, and mounting the camera into the tele where the eyepiece would normally be. That way, you get a camera with a (focal length of the tele) lens. My Meade is 350mm/f5.8, so that is what that would produce. Not too bad. The only trouble with this method is that the focal plane of the camera is not far from the CCD element, and sometimes the focal plane of the telescope is too far inside the tube. Barlows can help with that. I will post a pic, but I used the plastic cap from my telescope (it was black already!), and cut it to fit over the CCD element. Then I put two holes in it so it would mount. (I need that !@#$% cable!) Some folks hold the camera up to the empty tube assembly and get okay results. I drink too much coffee to use that method.

Finally, webcams usually only go to about 1/15 second on the exposure because CCDs heat up quite dramatically when left on longer than that. (That is one of the many reasons that I want the LPI from Meade...its plug-n-play for astrophotography of bright objects for $99.)

On the general subject you've broached with this entire thread...I have some thoughts from my personal experience.

I have always taken things apart, just never put all of them together again! Those things tend to do that to me, too. (Make me go all wonky.) I've wanted to build my own telescope for about 30 years now! About 20 years ago, I read an article written by an older man...about 65 years young. He made his own gears with a power drill and phenolic block (a sort of laminated plastic). That taught me it was all in the setup (jigging). How did he do it? He mounted the drill to his workbench, and the drill bit simply chewed the plastic until he had teeth! It took alot of clamps and bungies, but...the old coot made a telescope drive with it, and it was fabulous.

I started buying tools and learning to use them. I took up wood working, metal working, and also some chemistry and engineering. I'm still a noob, but...I can make some things. I spent alot of time examining PVC fittings; they are great for this type of thing. That is the type of thing I do when everyone else is spending all of the money I don't have! (Lurk about in hardware stores!)

The very first telescope that I produced cost me less than $50 total. I used a photocopier lens ($13), and the lens from a 16mm projector ($7) I used a 'lazy Susan' (ball bearings) for the azimuth, and PVC for the altitude bearings. (Actually, it is polar mounted, so its declination, and bearing.) I was anxious about how to put it all together, but...it just sort of came to me. I think that the less you allow frustration to control it, the better it turns out. Sounds simple, but...its frustrating stuff at times. The first thing I had to overcome was my tendency to just 'do it' and be done. It apparently does not work that way for me. Probably doesn't for you, either.

Sam wants the Internet, and I'm simply rambling...maybe I'll call one of my storage people, and try to get that cable...last night was clear, but too cold for middle-aged astronomers! I think I could image the moon with my modded camera...stand by.
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 11th Apr 2007 14:15 Edited at: 12th Apr 2007 13:19
ok this is nothing to do with the weather program but what else do I need to put in here to start making the user32 start to work?


++++++++
edit
try file now.
++++++++

Dark Physics makes any hot drink go cold.
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 12th Apr 2007 08:37 Edited at: 12th Apr 2007 09:21
That file is the project file (user32.dbpro).
I have a couple of things done since my last, but here is something that I want to show you by itself. It gets the last 4 GOES satellite images from NWS/NOAA. I am going to use an ini file for configuration, and use Windows to read and write it.


NOAA has alot of files that describe all of the available data...its ALOT! I will get you some links, and we will define the configuration file that will drive the whole thing.

I separated my Windows DLL code out into a project that really just loads up Windows DLLs. I am likewise going to put all of the iButton code into a separate file, and then the GUI elements into another file. The goal is to make small pieces that have a simpler interface. Do you want the Windows DLL project files to mess with? (There is a sample of a file open dialog, com port configuration, system error messages, and some more basic stuff.)

btw, I want to look at the other 1-Wire DLL, the one that exposes the JAVA functionality...still a few weeks away, however. I am still fitting in the non-jumpy version of getting the sensor data. Gim'me a few more days...things are a little crazy around here still.
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 12th Apr 2007 13:42
Ok have put the right file in the down load above, plus the code above works with no problems.(did it save an image anywhere or are you still work on that bit).

Have had to add a little change to the weather station code as it seem to every now and then, get a bit warm, shoots up to 185c so have put a bit in that checks if tempmax goes above 180c it ingors it and puts the last tempmax. Can't see way its doing it yet.

apart from that I have had it going for 4 days on the trot, until something else I was doing kill the system.

Dark Physics makes any hot drink go cold.
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 12th Apr 2007 15:56
Yes, there should be 5 of them in the folder that it is ran from. I was going to display them, but it was late.

The temperature thing on my end is that, occasionally...it will read 0, and the min temp suffers then. I think I am getting a bad read, or something.

I will look at your code later. Off to work now.
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 12th Apr 2007 16:25
here what I added as I could not thing how to put in if temp gone up more that 10 from last reading then keep last reading, yes I may have just done it then saying it but making do the same in code on go yet.



yep the pictures were there, even one with a shot of the UK on it.

Quote: "The temperature thing on my end is that, occasionally...it will read 0, and the min temp suffers then. I think I am getting a bad read, or something."


must be something else as I get it as well, like you say all going fine then blink its a bit cold out there. must get a -129c ever now and then, but would have thought it would put -129c in the min not zero.(strange... que twilightzone music).

cheers.

Dark Physics makes any hot drink go cold.
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 13th Apr 2007 04:15
I hope that you didn't hurt your neck looking at it, like I did! There are charts, and satellite images that are more relevant to you there, as well. Those 5 were the ones I saw on another page there, so I tried to grab them first. You see, they have this really nifty e-mail request system, which works alot like my old job did, except that I was using US Navy communications, and the messages were on that system. Anyway, you can send them formatted e-mails, and they will e-mail you the same stuff. I just assumed that they would support anonymous ftp, and they do! It is alot simpler, and the files came back really fast on my machine. That is a good example of something (ftp) that DBPro already does much better than Windows DLLs would.
Start here:
http://www.nws.noaa.gov/om/marine/home.htm

There is a mind-bogglingly large repository of information there.
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 19th Apr 2007 16:27 Edited at: 20th Apr 2007 06:05
right let stick a copy of what I have so far so as not to have to re build to this state again.

how you doing.

Dark Physics makes any hot drink go cold.
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 20th Apr 2007 19:57 Edited at: 20th Apr 2007 19:58
Okay, let me reciprocate by sending you this, which is my way of helping us keep in lockstep on this, because...it is getting complex at this point and some form of version control is desperately needed.

First of all, I have verified that I am getting both 0, and maximum temps occasionally. The fix is "down below", however, because there are some invalid return values on thos temp buttons. More on that later.

Second, I have to bust this up...its just too silly to have a single source code file that is upwards of 5000 lines. Besides, cut and paste is the weakest form of software reuse there is. I have developed a good working relationship with the default IDE, and I have a method of using the multiple source files efficiently across several projects. HEADS UP: Be very cautious experimenting with the files in the jzSource directory! The IDE will trash them if you let it. If you get a compile error about a duplicate definition...go to the TEMP directory, and open FullSourceDump.dba using Notepad. The correct file will be in that file. You can extract it with the clipboard, and use Notepad to restore it. It is a little convoluted, but safe. You can avoid this by always saving the file you are modifying using ctl-s, and then making sure that the main source file is the one that is in the active window before compiling it.

Next, about printing, and opening other windows...there is alot to both of those. Printing is handled in Windows just like the display...using what is called a Device Context. The screen content is reduced to a bitmap, and that is what is sent to the window, or printer. With printing, the device context is much different and you must take that into account. Most of the time, it is pretty rudimentary, but still...you have to go "by the numbers". We can get the printing of a DBPro window going by creating a window of our own, copying the bitmap, and proceeding in our window as is required. Simple, right? That is also the "big hammer" method of having DBPro draw primitives to another window...pretty messy, to be honest. (Slow, to boot, I am sure.) DX9 has a concept of multiple render surface which DBPro may, or may not support. I was only half-kidding before about talking to either DX9, or even (gasp) OpenGL. Those are both very excellent options to consider, no matter what your end application is.

You may or may not have noticed that I am now sticking stuff in your registry. I was going to wait until I have a version checking system installed, but I will have that when I post the combined code from your latest, okay? The key is HKEY_LOCAL_MACHINE/SOFTWARE/jinzai, and the jzWindows.dba will put a key in there if you use advapi32.dll Also, the DBProDAQ application puts a key in there. Both will have a version key. Also, the station parameters will be in the key, HKEY_CURRENT_USER. I am still debating where to put station definitions, which is where GUI elements will also be stored. Any thoughts on this, or do you need a better question asked?

Look at this:


That is a lot of energy and water trying to rotate there...welcome to the stormy season. Hold onto yer hat, mate!

Cheers.
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 21st Apr 2007 00:02 Edited at: 21st Apr 2007 00:50
Ok, let me see, you are now moving outside my comfort zone so now having to learn how to use lot of little files that make up the big picture.

1. I think you are saying to use DBProDAQ to get it all running yes.

2. get and error with this line:- dim Devices() as DEVICE

3. help! Not know what I should be doing, what goes where.

edit
comfort zone restored....

Like the new look clock and now I can see it makes more sense to have lots of little file here and there, easier to change one part than lots of parts.

so I can now make a function as a file and as long as theres a call for in the main file this function will run yes.

may be back to update this edited a bit more later on when i finshed digging around at whats going on.

ps how about a media load section.

edit 2

Liking what I see in doing it this way now. just been able to add the wind speed text showing max speed just need to find away of taking the here.windspeednow and making it kph mph and mps.
cheers talk again soon.

Dark Physics makes any hot drink go cold.
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 21st Apr 2007 08:07
First of all, sorry...I forgot to tell you how to install it. That would have saved you a little grief. I deleted the media directory to keep it smaller. Yes, it all fun and games until someone gets hurt. I will zip up the media directory and post it tomorrow.

In answer to your question about writing new code in new source files, yes...that works great. Any dynamic arrays need to be dim'ed in the main source file, at the top. That is what that error you got will tell you. (If you are working on something like that, and you get that error, it is probably an array that is dim'ed in the wrong place.) That isn't really a shortcoming, imo. I am getting good results adding code in this manner, as well as expanding the code I already wrote. I had some earlier incidents with losing code, but this method is pretty good at sidestepping the editor issues.

There are constants defined in jziButton.dba for using different units for the windspeed. What I did was define a variable in the station UDT that indicated which one it uses. I suppose that I should store it as a raw value, which in this case would be revolutions per second. I will modify that, and we can then call it whatever we've a mind to.

I also wanted to put all of the GUI elements into another file, or perhaps a file for each. They would be defined similarly. Each would have an Init, Draw, Update, and Shutdown function at least. I've been mulling it over. I think I need to do two or three more brainless tasks before it will bubble up completely. Tomorrow should provide ample opportunity for that.

I have been working on some other code for analysing audio signals, and also to demodulate it into computer readable information. I finally have the basic signal processing pipeline established, and I have a nice little multi-frequency FFT system. This code will be of use to this project at some point, I think. Someone posted a request for a bar graph like the ones on graphic equalizers. This is perfect for that, but it os "offline" only. (Its pretty slow!) I am also not sure that it is accurate, it is a little "seat of the pants", and forcing order of evaluation in DBPro is still very jerky for me. Here is what the alogrithm is looking like now:


What it does is give you back the percent volume by frequency. You set up the frequencies, and get the wavefile into a memblock, and it does the rest. I used it to look at some modulated data: SCADA data transmission, 75bps RTTY, and a WEFAX signal. It "got it right" on the first pass, which is used to tell what kind of modulation is taking place. There is some AI to be done, and then the signal is processed using information from the first pass. I was wondering if maybe this might be a good opportunity to explore some of the classical AI algorithms. (I know only a little about it, most of my AI is tied completely to the situation at hand.) I have written alot of this type of code for serial ports to determine speed, and other parameters about the communication.

Okay, I need sleep...its been a long week!
Cheers.
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 21st Apr 2007 08:21
cheers, my day just starting here, unless your reading this when you get up, then its half over

Got most of how files are made and put in stuffed, so no worriers there (at the moment).

could not find any part of wind speed in your code so just grab the old one and put it in the Main DBPorDAQ, will make it a function call later when subconscious has worked out how to do it.


I see that the ftp code is in, are; is it down loading anything and does the code display it yet or is that something you are still putting together.

Dark Physics makes any hot drink go cold.
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 21st Apr 2007 10:25 Edited at: 21st Apr 2007 10:47
oops, I plum forgot about your other sensors! Here is a 6MB zip file with that taken care of...line 298 (DBProDAQ.dba) is where the units are applied to the revolutions per second. The units are set in InitHere(), at line 951 in the same (main) source file. That will be gotten from the station definition in the future. Like I said, I am not sure if I want the station in the registry, or in the application directory, or perhaps in an ini file. I want to be able to have more than one station defined, and also...I plan to hook alot of stuff up to this thing.

There is still alot of stuff to hook up, and expose. For example, the array localip() contains a list of valid ip addresses for your machine. There is also a complete file open common dialog box defined as well as the com port configuration dialog. I will show you all of those soon. The ftp thing can be uncommented, and it will put the files in the application folder, like before. I only uncomment it once per day, or so. No big deal, just longer to wait for the screen to start up! That will be likewise driven by the station definition. Lots to do!

Back to bed, I only needed a snack.
G'night.

EDIT: I mean...here are some of the files that will correct the media issue...I will send the other ones next time.
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 21st Apr 2007 11:15 Edited at: 21st Apr 2007 11:39
here some source files have made, just add the function name after wvain().


add these to station udt.


and this corrects the images so that the right is showing for the direction pointing.



Dark Physics makes any hot drink go cold.
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 21st Apr 2007 14:23 Edited at: 21st Apr 2007 14:24
While you slept I've been getting my tempature graph to work,

first the varaibles



now the bit in the main loop before wvain()



plus down load the plotgraph.

not yet worked out why I get a load zeros at the start or how I would get this to be an image on a plain.

Dark Physics makes any hot drink go cold.
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 21st Apr 2007 19:20 Edited at: 21st Apr 2007 19:36
That is simply smashing.

The graphing looks good, we can easily make that graph many things. I used to work woth graphing displays of collected data, and that should be very doable. We will make a generic UDT from that, and the program will be able to plot any cyclical data in the same manner.

The zeroes are probably DBPro initializing the array. You could draw it to a bitmap that you create, and then make an image from that.

Time to go to work. Off at 6.

Great stuff, there....really great!
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 23rd Apr 2007 00:47
heres a picture of what the graph looks like after 14hrs of running, plus what would the trogan do, any ideas?(bottom right of picture.)

cheers

Dark Physics makes any hot drink go cold.
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 24th Apr 2007 04:13 Edited at: 24th Apr 2007 04:37
Wow, that is odd. Its trying to get at an MS-SQL (database) server. Interesting, probably someone just hitting ip addresses until they hit something. Good catch on the part of your firewall, though.

Hey, that graph is great looking. I was going to start a dll just for creating extra windows. Most of the other window commands you can get at from DBPro, just CreateWindow takes too many parameters, and despite rumors to the contrary, you cannot really trick it into making a correct call using any of the methods I tried.

I tidied up my FFT, and started a new source file for audio signal processing. Its still too early to put in this project, but we will find a use for it I am sure. FFT is great for signal analysis. I also graphed the output for two signals, a 75bps RadioTeletype and also a multi-channel signal from a SCADA system. The red one shows a spectrum typical of this type of signal, which is a 2400hz carrier modulated by a 75bps intelligence signal. (My guess in this case is BAUDOT text. It is what I am going to try first.) The signal came from a site for ham radio enthusiasts. I was hoping to find a full WEFAX chart in audio form to use, but all I got was about 1 second. It'll do, because it will for sure have a start bit, and contain at least one frame of data. The trick with this stuff after knowing what you are looking at is to stay in sync with the signal. Then, its all about error detection and correction.



I am trying to get a decent system for eliminating the lag caused by the sleeping bit, bear with me for a while longer. It'll be soon, it bugs me, too.

On a sidenote, I got my aircraft drawings from the Smithsonian Institute. They are very nice. I will scan them tonight, and show you the Wellington Bomber, and the Spitfire. Its a very cool set from February 1942, produced by the U.S. Navy Bureau of Aeronautics. They were sent to schools to make models to train spotters, pilots, etc. Very neat and nostalgic, I intend to purchase to entire series, and model them in 3D Canvas. They are simple three view drawings at 1/72 scale. They are ridiculously low-priced because they are archival copies (looks like xerox to me, but xlnt quality).
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 24th Apr 2007 06:16
Quote: "show you the Wellington Bomber, and the Spitfire."

living here in the UK you would have thought I would have seen or heard one of those machines, but NO not unless I go to an air show, heard and seen a (help! name escape me) the blue type plane with the star on the side P type or something P45. well seen one of them, plus seen a squad of AH64's nice.

Wondered what the virus cherker was catching, easy to use but tell it not to allow anything in, it No come in, stops 99.9% of Adverts and all pop ups, can even shut IE7 down if item is on block list took ages to work out that one.

Back to the weather program, found out why I am getting a line at the being of the graph but, cannot see away to stop it yet, seem that the plot graph part shoots off the first time around no matter which way I try to stop or check for a true to go.
might find out how it doing soon I hope.

cheers.

Dark Physics makes any hot drink go cold.
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 24th Apr 2007 09:34
There is the P-51, which is usually silver with a star. That was the predominant US fighter plane in the European theater during WWII. The Navy/Marines used alot of blue ones, the Corsair F-4/U, F-6F Hellcat, F-8F Bearcat, and some others.

I do not know British WWII aircraft very well, either. I think it is because many of the early ones were interceptors, and used to defend the Isles, rather than as offensive units. I know that the Mosquito was quite effective in the early going, and Gloucester, deHavilland, and Vickers all put many great aircraft in the air during that time. Ther is too much to model! (I also use artillery, and pretty much everything they used!)

My application is based in the Eastern Front, so US and British aircraft are not exactly what I needed. I got some German ones, but not any Soviet ones yet. (There are Soviet aircraft in the series, they are next on my list.)

Here are all of the ones I've scanned, some of the larger ones need to be handled differently. I have started to process the Me-109 into top, left, and front views. I also inverted the colors, and now I can use them to create a model in 3DCanvas. The Spitfire template will be a good start for a small balsa, or styrofoam glider. Alot of them have that potential.
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 24th Apr 2007 14:25
http://www.military.cz/british/air/war/default_en.htm

http://www.luft46.com/

have a look in these site might be a few can use.

There a magazine at work , will tonight and see what is called.

Dark Physics makes any hot drink go cold.
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 24th Apr 2007 15:39
we got sunshine on the planet added these lines and see.





Dark Physics makes any hot drink go cold.
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 27th Apr 2007 15:45
Given all the object numbers for Weather Vain and Pointers Names.

Dark Physics makes any hot drink go cold.
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 1st Jun 2007 19:40
An update to graph plotter, now plots for 24hrs,



Dark Physics makes any hot drink go cold.
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 2nd Jun 2007 04:25
I have a whole graph plot thing too. It can plot wave files, and I was almost ready to spring it on you. In a few days, I will post it and we can put them together. At the moment, I have it stuck in my DSP code file...it doesn't belong there.

I want to also take the clock out at least and make a file with GUI elements in it.

I also am wanting to get GUIStudio; it is very nice for this sort of thing.

What we lacks is the nice timer stack thingy. Oh, I must read my newsletter, they are going to dumb it down for me. I hope it is compatible with what I have already.

Nice add, too. Cheers.
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 2nd Jun 2007 07:07 Edited at: 2nd Jun 2007 07:44
I'll look out for what you been up too, just posted the above to keep the post open, didn't want to start another one, not after all the hard work that we put into this one.

still not found out why it only plots after the first 10 Min's or sometimes plots right away, should grab some data right away and display it, then start counting time till five Min's it up.

Also think I may have left out some constant for the above but you may have worked that our already.

Quote: "I also am wanting to get GUIStudio; it is very nice for this sort of thing."


not look at that GUIStudio will be given it some anntention later today.

Cheers.
edit
Just had a look and if it as easy as videos then the plastic about to be dented.
edit 2
One screenshot as got me, showing speedometers and fuel gauges, uuuummmmmmm.

Dark Physics makes any hot drink go cold.
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 23rd Jun 2007 09:08
...coming back around to it.....next week is going to be all graphing and networking!

Hey, we've been at this 8 months now. Too cool.
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 23rd Jun 2007 15:35
Has It been that long! time files when you your having fun, I await the update, not been doing that much my end just been using what we have as you said you where working on an update.

UK summer is the norm rain, rain and more rain, unlike Australia and New Zealand, which have been reported to have had about 3-8ins of snow fall in the past few days and about 14c to -5c at times. Brrrrr.

weather should improve after Mudstonbury (Glastonbury) pop festival
has finished.

catch you soon.

Dark Physics makes any hot drink go cold.
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 29th Jun 2007 06:13
Been nosing around and found a space-weather site.

http://www.spaceweather.com/

give it a look.

Weather here on the very wet side raining, floods and strong winds, must be summer here.

Dark Physics makes any hot drink go cold.
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 29th Jun 2007 23:11 Edited at: 29th Jun 2007 23:13
That is a nice site, I like the daily sun pic, maybe I can suss out how to ge those, too.

Right now, I am lacking a 32 bit CRC generator, which I will code up this weekend, I think. I want to give my dynamic arrays a way to grow and shrink while still being able to uniquely identify each one. In the case where I will delete something in the middle, it will break code running at the top. (The indices will be off at the element removed, and beyond.) Without some other mechanism, I would have to keep the object around, and just ignore it. I don't like that!

When its done, you will then use the CRC to index into the array. It would still be 32-bits, but it would uniquely identify that particular thing. The CRCs would be guaranteed unique for the time the program was running.

Dallas already uses CRCs in the device ID, and also for some comms, there is a CRC on the data.

We are going through our stormy season here, as well. Lots of very violent thinderstorms, which naturally, I like alot!

Last week, there was a perfect night for the telescope, and I had a crowd of children there, looking at Venus, Saturn, the Moon and also Jupiter. I forgot about Mars until too late, but I finally saw Venus' phase. It was very nice, although I was not able to align it, as it was too bright. I did manage to fake an alignment. I was surprised at how much the kids enjoyed it. I suppose that the fact that it drives itself to the object was pretty thrilling to them. They really liked centering the object, and trying to keep it centered. Who knew?

I have also done some experimenting with creating various style windows. This is in a plug-in, however. I finally have one that has a transparent background, now all I need to do is pass a bitmap to the plug-in, and I will have an overlay with drawing capability in Windows and DBPro. Still, I'd rather have GUIStudio...maybe I will save my pennies for that instead.
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 30th Jun 2007 08:43
The other week sounded like a fun night, hopefully you switch on someones science curiosities and they might become the next mars rider.

The sun picture site looked good as do some of the links (heavens-above.com, one just given to me by click on the BBC.) on the site.

I have a copy of BlueGUI, Do not know yet if you have that or not, let us know when you found the pennies for GUIStudio I'll will jump in and get it as well.

Think your CRC idea my be of use in other projects that my be on the back burner, some of the commands could have done with an append function built in to them.

Well that it for now off out in to the wet to get the weeky shop.

Cheers

Dark Physics makes any hot drink go cold.
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 11th Sep 2007 06:50
just bumping it, to keep alive

cheers.

Dark Physics makes any hot drink go cold.
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 13th Dec 2007 13:19
Hello jinzai ,

I was wondering if you would have any spare time to spend on looking at why (if you can remember any of the code used in this project) when the temperature goes below 0c it seem to throw a error the value becomes -129.000xxx.

Someone said I need to do something like add or takeaway 11111111 to get the right value.

Only just found this error as its getting a bit cold here in the UK.

cheers HowDo

Dark Physics makes any hot drink go cold.
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 20th Dec 2007 15:53
sorry, only just saw your post. I will look into it...I think you may be correct, or close to it. (complement and add 1...I think.) I have lost my devices...not sure if they are still locked up at the old place, or not. I am moving in January...hopefully, I will find it then.
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 21st Dec 2007 07:05
hope you get sorted soon, I found a way of doing It but may not be the best way.


This solved the problem, numbers may look wrong but its seem to be able to go down to -0.99 before the above was put in, but as soon as it hits -1.00 it turns into -129.0.

When you find any time.

Cheers.

Dark Physics makes any hot drink go cold.
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 13th Jan 2008 07:01 Edited at: 13th Jan 2008 07:02
Hers a picture of what it looks like so far, if anyone else is looking perhaps they might like to comment on what think might be/look clear on the screen.


cheers



Dark Physics makes any hot drink go cold.
jason p sage
18
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 13th Jan 2008 23:05
Dude - I think your nuts and talented all in the same bundle! I think your work looks great! I even showed my wife your latest snap shot and explained to her that I believe you have trend analysis, etc. and she was wowed!

Keep up the good work!

Question...What is the "RED DISC" with the gradient circles on it?

HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 14th Jan 2008 07:22
Thanks for your comment jason p sage I like the 'trend analysis' sound real cool.

The red disc is one multitasking bit of graphics, what you have is the The Beaufort Scales showing from zero (center) to force 12 (outer ring), theres a small ball that move around depending which direction the wind is blowing and how hard. plus under the small ball is the text (cleaver bit that text following a linked limb object.)which show force number then the speed in Knots, Mph and Kph, simple really.

hope that makes it a bit clearer and thanks for looking.

Dark Physics makes any hot drink go cold.
jason p sage
18
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 14th Jan 2008 07:26
Thanx for answering my question.

Yeah - that's Great - and simple... Simple to understand that is... not to make it

jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 19th Feb 2008 09:03 Edited at: 19th Feb 2008 09:10
Very sorry about the lengthy delay. Life has been quite frustrating of late is all I can really muster up as an excuse.

I found my devices! Still, my temperature sensor is not a DS1820. Here is the attempt to correct the temperature reading. The change is small (one bit really), but then so is the error. I hope it works!



The new mask will strip off bit 7 for negative numbers only. That should be the answer.

Here is where the change is :
tempword = tempword && 0x0000007f (was 0x000000ff)
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 19th Feb 2008 12:38
jinzai thank you for your responses, once again I am amaze how you seem to solve a problem when you have not got the device.

I have heard from some people over the water that you are having some really nasty weather which I believe is down in the negative figures some of the time, ouch!

Hope life returns to some form of normality for you soon, as you're input in these forums is missed I am sure.

so thank you again, cheers howdo.

Dark Physics makes any hot drink go cold.
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 1st Mar 2008 04:58 Edited at: 1st Mar 2008 05:27
now If i cound have found win zip that did not want me to join give email and not what, I would put this up as a zip file as things are here they are as code source.

edit
failed to get it uploaded right

loaded up the full source dump made by the editor

Dark Physics makes any hot drink go cold.
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 1st Mar 2008 08:14
You know...DBPro does zip; I have been successful in resisting the temptation to code something crude up for that. Surely, someone has already tackled that one. Also, I have one (IZArc, maybe?) on my development PC that does not require all of that nonsense. At the moment, I am trying to get it set up here. (I am in St. Louis again for some time....not certain how long, though.)

Well, I grabbed your source anyway. Can't wait to fire it up, its really a cool application, imo.

I have some things I have been working on that I am about to post here somewhere. The first thing is a plug-in that allows multiple copies of the same sound without having to load many copies of that wave. I have that hooked up to the drum kit from Rock Band, and it is fun to play. (Got the coppers called during the initial test. Downstairs neighbors! At least I was out of the basement! The cops thought it was cool, so no ticket on that one.)

Then, I also have been studying matrix objects, they make a perfect clone of those games (Guitar Hero, etc.), but...I managed to lose the most recent source. I will post that in its own thread. I have a file format done, and the editor to make your own songs, to boot. I have done ten songs, but they require alot of editing, and I am trying to write the editor at the same time.) I use a plug-in for the file I/O because it is otherwise very slow. (Load time of 30 seconds compared to less than 2 seconds!) I saw a neat toy from Hasbro that I may want to pick up, it is a guitar type controller.

Next, Bluetooth connectivity for my Motorola Razr V3. The one I bought is not locked, I almost fainted when I saw that I could control the Bluetooth. I hope that I can upload Java apps to it, that would be great. I will be happy to just be able to get the pictures from it.

Finally, there are two bits of hardware that I hope to purchase and use in this project somewhat. The first is a networked microcontroller that speaks 1-Wire, Ethernet, RS232, CAN, and about three other things, the other is a wireless USB 3-axis accelerometer.

OKAY, NOW WHAT AM I TALKING ABOUT?
1. XInput for the XBox360 controllers. You can use it from DBPro using load dll/call dll. It is simplicity itself, really. I will post that in another thread.
2. Wave files with multiple buffer pointers. Again, another thread.
3. Bluetooth using Sockets. 'Nother thread.
4. Wii style input with a standard off the shelf controller and accelerometer. Should be a real hoot, this one. Yes, yet another thread. I want others to participate in this one, however. The thing will be expensive...about 100USD to start, and then the cost of the controller, and PVC, switches, etc. When I get the accelerometer, I will start the thread.
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 1st Mar 2008 16:35 Edited at: 1st Mar 2008 16:36
just a teaser this is what it looks like now.



Dark Physics makes any hot drink go cold.
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 1st Mar 2008 19:31 Edited at: 1st Mar 2008 19:35
That is simply stunning! I have an idea for some multiple views using more cameras. Who wouldn't want more cameras? I need to transfer the pics you sent me onto the other machine, which is up now, but I am too tired to look for another ethernet cable.

About all that other stuff, I realize that it will probably only require 2 threads. Here is a little bit of code for testing xbox360 controllers with; I use it in the RockBand code. I am thinking about another community type project - "RockStar".
You can pick up the proper drivers here:
http://download.microsoft.com/download/0/0/f/00f2a67b-e10b-43b1-8cca-3deb12218f75/Xbox360_32Eng.exe



After a quick nap, I'll update my code to your version.
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 1st Mar 2008 20:56 Edited at: 1st Mar 2008 21:03
hope you got all the pictures as aol software was playing silly sod and not doing as I hoped.

moon pictures came from

http://www.mikeoates.org/mavica/lunar.htm

just grab and save each one (fun!)

Dark Physics makes any hot drink go cold.
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 3rd Mar 2008 08:40
I've got'em all now. btw, thank you so much for that pic of your girlfriend! (I am still using Kate Beckinsale as my imaginary girlfriend.)

I upgraded and compiled my version with 6.7...working okay. I will look at your current version to see what the matter is. I would hope that it is something simple and you could upgrade still.

Oh, and about the vane, I found the 'problem'. It is being illuminated by light 1...I just went ahead and used light 0, which is the ambient light. The issue is all of the lighting values for it are not yet set. Right now, I am getting all of the light straight for it, it looks great so far! (Even the shadows are better.)

I have been avoiding studying lighting because it will consume all of my time, I just know it. I think it would be nice to make an in-place lighting editor. (So you don't have to recompile to see the effect of lighting changes, which is painfully slow and frustrating to me.)
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 3rd Mar 2008 10:41 Edited at: 3rd Mar 2008 12:23
when you get the chance the things that have been driving nuts is getting the correct moon picture and trying to get the hight tide system to work on its own. it could be I have the moon pictures right, just that when I go outside (strange thing doing that) and I look up in the sky at night (make a good programe title) and its not cloudy they do not alway seem to match what I see.

think it has something to do with hours and mins of the day but could not get that to work right with the code I have.

As for the tide predictor, finding a start time to use then trying to make it count on from then, AAAGGRRA. that how far I got, seem that you have about 72 mins before you are left with 5 hours to go for high or low tide, again trying to match what I sea by webcam of a local beach they againg do seem to match up (well there close).

On to another aera was hopeing that putting the sync sleep 1 bit at the being would have let us remove the sleep function but there was not joy there.

cheers for finding out there was still a light problem I thought I'd fix it. It be one big headach play with them.

You may Have notice that it now plots correctly and that it also save some data when the 24 hours are up, If I could get my sub concous to work out a way of using that data to replay what happen then you might be able to see what the other stuff look like when running with the station connected.

Ok what else have I put into it, oh yes that flag could have been better but finding some soucer code to mess with is dam hard they(or is it them) out there don't want to give it up easly.

Somke work great when it really windy here but when it still it not look good but that lilmit of the code.

have been thinging of putting all you see on the screen on to the diffrent sides of a cube so the you spin the cube to the info you wish to look at and that side fill the screen.

Ah now then! there the wind direction collector that show which direction the wind has blown the most, now getting that to draw off screen to grab was fun to get your head around when learing how to do that, sem to work ok.

---
6.7 does not want to work yet nor does Physics both will not load and run they just come up with the error dialog box.
May have to put the codes I have so far in a safe spot and unload all of darkbasic and reinstal it all may work then.

Yikes! boy that was alot I wrote there, You can wake up now your at the end of the page, class dismissed.

Catch you soon cheers.

ps. whaa got the update to work can now use 6.7
pps. the wind object target tracker thing nice bit that have text following a limb object!

Dark Physics makes any hot drink go cold.
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 4th Mar 2008 12:52
if you have some time free see if you can get this to work, came from here :

link http://www.bodmas.org/kepler/riset.bas

code


Dark Physics makes any hot drink go cold.

Login to post a reply

Server time is: 2025-08-08 17:37:03
Your offset time is: 2025-08-08 17:37:03