Search found 2018 matches

by Dr_D
Aug 25, 2019 18:48
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 65
Views: 9715

Re: Audio library for FreeBasic - Features

I'm sorry, I haven't tested anything related to sound for a while. I've been fatally addicted to working with circuits/serial communications lately. On top of that, my daughter just started college, and we've been talking like crazy. :) I will try to test after work tomorrow. Hopefully someone else ...
by Dr_D
Aug 18, 2019 21:42
Forum: Hardware Interfaces / Communication
Topic: FreeBasic communication with Arduino logic error?
Replies: 50
Views: 14219

Re: FreeBasic communication with Arduino logic error?

Anyway, I removed any communication back from the Arduino, and the lag has pretty much gone away. Have you tried with higher baudrate settings? (I never go below 19200, minimum) I've run my *very old Arduino* (pre Ono model) at speeds up to (and including) 115200 baud. The real HW communication is ...
by Dr_D
Aug 18, 2019 19:25
Forum: Hardware Interfaces / Communication
Topic: FreeBasic communication with Arduino logic error?
Replies: 50
Views: 14219

Re: FreeBasic communication with Arduino logic error?

Ok... I know how crazy this image looks, but I'm not sure of another way to do it just yet. lol Anyway, I removed any communication back from the Arduino, and the lag has pretty much gone away. The code for both sides is below, but the Arduino code hasn't changed much at all... basically just remove...
by Dr_D
Aug 18, 2019 0:38
Forum: Hardware Interfaces / Communication
Topic: FreeBasic communication with Arduino logic error?
Replies: 50
Views: 14219

Re: FreeBasic communication with Arduino logic error?

Thanks for the image hosting site... I have no idea why imgur didn't work. .. probably something to do with money. lol Anyway, I will post what I have, but I'm not out of ideas just yet. I'm still learning... maybe I missed something simple. If I can, I'd like to find it myself. If not, I'll ask aga...
by Dr_D
Aug 17, 2019 23:00
Forum: Hardware Interfaces / Communication
Topic: FreeBasic communication with Arduino logic error?
Replies: 50
Views: 14219

Re: FreeBasic communication with Arduino logic error?

/* Well, I've come to a conclusion. I don't think a serial connection is suitable for a binary clock. I can now pass the data correctly, but unpredictability of the timing of when the buffer is actually full isn't reliable enough for something like a clock. However, I have learned a ton. I can make ...
by Dr_D
Aug 16, 2019 2:04
Forum: Hardware Interfaces / Communication
Topic: FreeBasic communication with Arduino logic error?
Replies: 50
Views: 14219

Re: FreeBasic communication with Arduino logic error?

Thanks dude. This is awesome. I need to take some time to wrap my head around it. I still don't understand why it isn't over when if(serial) is over... but all I can do is learn what's going on. Thanks again. :)

EDIT:
At the time of this post, I haven't even read most of it...
by Dr_D
Aug 15, 2019 20:43
Forum: Hardware Interfaces / Communication
Topic: FreeBasic communication with Arduino logic error?
Replies: 50
Views: 14219

Re: FreeBasic communication with Arduino logic error?

Here is my Arduino sketch... //This is the Arduino tutorial for daisy-chaining shift registers that I followed... //https://www.marginallyclever.com/2017/02/daisy-chain-74hc595n-shift-registers/ #include "MessageBuffer.h" static MessageBuffer msg; const int SER = 12; // (595 pin 14)serial ...
by Dr_D
Aug 15, 2019 19:34
Forum: Hardware Interfaces / Communication
Topic: FreeBasic communication with Arduino logic error?
Replies: 50
Views: 14219

Re: FreeBasic communication with Arduino logic error?

I'll post the arduino code when I get home... But, yeah, I'm iterating through the list, and I seem to keep getting garbage. I didn't know about serial monitor... Thanks!
by Dr_D
Aug 14, 2019 23:14
Forum: Hardware Interfaces / Communication
Topic: FreeBasic communication with Arduino logic error?
Replies: 50
Views: 14219

Re: FreeBasic communication with Arduino logic error?

Hey guys, I have another question... more like a problem I'm unable to solve myself, so I'm sorry if this is a lengthy post. I've wired up a binary clock led display using some SN74HC595N IC's as shift registers because this project requires more pins than the Arduino offers. To get to the meat of i...
by Dr_D
Aug 12, 2019 22:27
Forum: Hardware Interfaces / Communication
Topic: FreeBasic communication with Arduino logic error?
Replies: 50
Views: 14219

Re: FreeBasic communication with Arduino logic error?

Thanks for doing all of this, it's extremely helpful. I'm a total beginner at communicating with another device this way, so please bear with me... I have a few questions... and then I'll probably have more. lol So, I can only get coms to work, if I use COM3. Is there an explanation for this? At fir...
by Dr_D
Aug 04, 2019 15:49
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 65
Views: 9715

Re: Audio library for FreeBasic - Features

a simple SID playing routine where nice for my project, but i think open and play MP3 files easy where a must have if it is not to mutch work. No. I think MP3 should stay outside of the SFX library, just as JPG are not included in the GFX library. also a easy to use 3D sound positioning/playing whe...
by Dr_D
Jul 30, 2019 22:23
Forum: Hardware Interfaces / Communication
Topic: FreeBasic communication with Arduino logic error?
Replies: 50
Views: 14219

Re: FreeBasic communication with Arduino logic error?

Interesting... I've been toying a bit with Arduino again as well. I've never attempted to use it in conjunction with FB before, though. It looks like this gives me the perfect excuse! lol Anyway, I have extremely modest goals, to be quite honest. It's all just for fun, and to keep my mind active aft...
by Dr_D
Jul 27, 2019 21:56
Forum: Projects
Topic: Another binary clock...
Replies: 0
Views: 5963

Another binary clock...

I made this because I was bored, but it looks pretty cool to me, so I decided to post it. I might make an actual mechanical with with an Arduino. :p #include once "fbgfx.bi" using FB const as single pi = 3.1415926, pi2 = pi*2, pihalf = pi/2 declare sub button( byref x as integer, byref y a...
by Dr_D
Jul 21, 2019 20:05
Forum: Projects
Topic: DOD.bas Dungeon of Doom
Replies: 3
Views: 3032

Re: DOD.bas Dungeon of Doom

You may wish to check Richard Clark's website : http://users.freebasic-portal.de/rdc/index.html He has an excellent tutorial "Let's build a roguelike" and several FreeBASIC programs. This is worth repeating. It's just awesome stuff from a really smart guy. In any event, do you know about ...
by Dr_D
Jun 03, 2019 22:13
Forum: Libraries
Topic: fbsound 1.1 (dynamic) Windows/Linux 32 and 64-bit (wav mp3 ogg mod it xm s3m)
Replies: 44
Views: 12140

Re: fbsound 1.1 (dynamic) Windows/Linux 32 and 64-bit (wav mp3 ogg mod it xm s3m)

Heya... I did some tests and discovered that the popping artifact has nothing to do with FBSound. As far as I can tell, there is an issue with my audio hardware. Even with professional audio recording/editing software, the buffers eventually get corrupted. Sorry for the nonsense. lol

Go to advanced search