One in place of the other. But try first with: tcflush(handle, TCIFLUSH);
Many thanks in advance yogi.
1 Sep 5, 2016 4:58 pm
Re: OPA Multi-timbral FM Synthesizer (50 replies, posted in Other Hardware)
2 Sep 5, 2016 4:58 pm
Re: OPA Multi-timbral FM Synthesizer (50 replies, posted in Other Hardware)
One in place of the other. But try first with: tcflush(handle, TCIFLUSH);
Many thanks in advance yogi.
3 Sep 5, 2016 3:44 pm
Re: OPA Multi-timbral FM Synthesizer (50 replies, posted in Other Hardware)
Hi Yogi,
since you are in the rs232-linux.c code could you try this:
add the line:
tcflush(handle, TCIFLUSH);
before:
if (tcsetattr(handle, TCSANOW, &config) < 0) {
So it makes:
// Timeouts configuration
config.c_cc[VTIME] = 1;
config.c_cc[VMIN] = 0;
//fcntl(handle, F_SETFL, FNDELAY);
// Validate configuration
tcflush(handle, TCIFLUSH);
if (tcsetattr(handle, TCSANOW, &config) < 0) {
close(handle);
return 0;
}
com->handle = handle;
return 1;
}
It's very possible the uart buffers are not initially empty as they are used by the system as a terminal console. Can you tell me if that solves the problem?
It could even be more secure to perform a:
tcflush(handle, TCIOFLUSH)
Please try it too.
Fred
4 Sep 4, 2016 4:46 pm
Re: OPA Multi-timbral FM Synthesizer (50 replies, posted in Other Hardware)
If you're sure of your connections (RX and TX swapped correctly), you can try to short R5 and see if that's working better.
Also, if you do not have a scope at reach, try with an ohm-meter to check the basic conductivity of your wiring.
5 Sep 4, 2016 4:46 pm
Re: OPA Multi-timbral FM Synthesizer (50 replies, posted in Other Hardware)
If you're sure of your connections (RX and TX swapped correctly), you can try to short R5 and see if that's working better.
Also, if you do not have a scope at reach, try with an ohm-meter to check the basic conductivity of your wiring.
6 Sep 4, 2016 6:21 am
Re: OPA Multi-timbral FM Synthesizer (50 replies, posted in Other Hardware)
Hello Yogi,
given the logs, I can tell that the editor received no data from the OPA.
Look (putty1.txt):
00000040 3D 7E 3D 7E 3D 7E 3D 7E 3D 7E 3D 7E 3D 0D 0A 0A
00000050 00 4C 00 0E 00 00 05 00 09 04 05 00 09 07 05 00
Real data starts at 0x004F (0D 0A is carriage return / line feed)
Editor sends 0A 00 4C 00 = please send me program 1
Then he should ask for program 2 until program 10, kit parameters and global parameters to initialise the GUI.
If it does not ask for more, it is because he received nothing.
I have checked the Raspberry Model A & B 2.1 and Model B+ 1.2 schematics and TX / RX lines are directly connected to the CPU, there is no logic conversion or pull-up, pull-down resistors.
The OPA shield also works with 0V to 3.3V logic levels (as the Raspberry).
You must have some connection problems.
I recommend you to use a scope and probe the logic levels on the RXD pin on the Raspberry connector to check if they are in a good range.
7 Sep 3, 2016 8:39 pm
Re: OPA Multi-timbral FM Synthesizer (50 replies, posted in Other Hardware)
Hi yogi,
I have been reading what you've done and I think you've found most of the problems. It should be working ok by now!
Send me a dump of the data it transmits and I will have a look.
You can actually log a putty session into a text file:
http://www.tricksguide.com/guide-how-to
ssion.html
I believe the problem might be the wiring.
Are these lines set as followed:
- DIG2 / CS1 => 0v
- DIG3 / CS2 => 0v
- DIG7 / RESET => 0v
- DIG7 / SWAP => 0v
with no jumper on the shield?
Fred
8 Mar 9, 2016 10:49 pm
Re: OPA Multi-timbral FM Synthesizer (50 replies, posted in Other Hardware)
sounds interesting... good luck and thanks for making that fb01 editor, its very handy
Thank you for your message, hope you enjoy it!
9 Mar 9, 2016 10:47 pm
Re: OPA Multi-timbral FM Synthesizer (50 replies, posted in Other Hardware)
I guess it's purely FM, there is no PSG like sounds (square waves) like on the megadrive?
Indeed you are right. It is on a separate dedicated chip so far I remember. This module do not produce square waves. I tried to keep the project simple.
Any way to update firmware? If there are updates.
Possibly but my philosophy was more to deliver a bug free product and therefore no need for updates. I am seriously thinking about this though.
Sales of programmed dsPICs at some point?
Yes, guaranteed.
Would like to build a UI, maybe based on STM32 or PIC32, at some point
Maybe but I also need to make a living. This kickstarter project is more a fun thing for me, I make absolutely no money with this project and it takes a lot of working time, trust me :-)
10 Mar 8, 2016 11:11 am
Topic: OPA Multi-timbral FM Synthesizer (50 replies, posted in Other Hardware)
Hi everyone.
And cheers to the community since that's my first post here!
It's Frédéric, the guy behind the FB01 Sound editor (and other hardware synths).
I would like to present you my new project which is running on Kickstarter right now.
I have designed an inexpensive 10 voices multi-timbral FM synthesizer which share
similarities with the YM2612 from the Megadrive.
It has the following characteristics:
4-operator voice structure
14 different algorithms
8 simultaneous instruments
16-bit stereo output
It comes with a free (and open-source) multi platform (Win, Mac, Linux) editor and
an Arduino library.
If you like the project and want to support it, here is the link:
https://www.kickstarter.com/projects/13
escription
I am ready to answer your questions and comments. Thanks.