Commit graph

39 commits

Author SHA1 Message Date
Michael Colton
b78769a2ca This is a major architectural change. It's based on STM32CubeMX building a Makefile project with a lot of the configuration already done automatically. The reasoning being that they'll get right on the first try what I have to torturously fiddle with. And the result? With minimal effort, I already have a build that is more portable to develop on, uses the latest drivers, includes FreeRTOS, and I've already got DMA video working pretty much perfectly (though not 100% optimized and tested). This is also giving me a convenient opportunity to massively clean up my code and just a few tricks I've learned since writing the old code. So far so good!! BUT! It can't do any radio like things yet, none of that is implemented at al, no interface, no audio, etc. 2019-05-24 15:28:07 -06:00
Michael Colton
457c2702ce Dude, this DMA thing is killing me!!! I can write to the display at blistering speeds, but there are errors in the picture and I can't figure out why! <pulls all hair out!> 2018-06-21 23:51:59 -06:00
Michael Colton
14d70c8afd Semi working DMA code for the display driver! So excited! Now to work out the bugs :) 2017-06-24 23:42:12 -06:00
aaa24f87de More compiler warnings, unused variables mostly 2017-01-15 15:43:22 +11:00
0aeba6c947 const images causing comipler to complain 2017-01-15 15:31:56 +11:00
3ecebbd2e1 Nicely teardown peripheral's before StandBy 2017-01-01 21:34:04 +11:00
4b2fd072e9 Power Off works! click Reset button to power on 2017-01-01 17:19:59 +11:00
1381f544d0 More compiler warnings fixes 2016-12-31 20:25:25 +11:00
5510302b11 Useful Volume menu item. Compiler warnings in main.c 2016-12-31 16:02:50 +11:00
Michael Colton
c2b94ddce0 Fixes very basic transmit support. Adds assembly instructions. Cleans up the Solid Model a little and moves older items to an Archive folder (basically to make sure they are okay to delete, since Git is keeping a history, there is no real reason to have an archive folder, right?) 2016-11-07 23:23:26 -07:00
Michael Colton
7a70b17276 Adds BOM for PSDR2.6, also some notes on the schematic, and defining the pin for charge source control. 2016-06-09 00:35:57 -06:00
Michael Colton
88d9220f56 This fixes (I think) the ADC issue. Or rather, interprets the already correct values correctly. Anyway. I think we are good, though more testing would be nice. I compared the F4 display performance to the F7 to see if the flickering/shimmering effect was there. It was not..... because the display was scrolling so slowly by comparison! The F7 is so fast that it was sometimes calculating and drawing the waterfall twice! Should be better now, but I may want to slow it down further. Also some changes to the power up/clock settings functions. Turns out there were two, not sure which is better or more complete. They both work well enough for now.
So with this, I think the F7 is now doing everything the F4 was doing, and can become the official chip of the next board revision.
2016-05-11 16:57:45 -06:00
Michael Colton
acefe9aa46 Seems I've pretty much got the F7 working now. There is still something weird with the ADC not returning the right value.. Also, the screen looks shimmery if viewed from the right angle. I've never noticed it before. Not sure if that's the F7's fault? Saving here so I can try the F4 again to compare. 2016-05-09 21:49:47 -06:00
Michael Colton
ac513eaae0 Merge branch 'master' into PSDR_F7
Conflicts:
	Source/.settings/language.settings.xml
	Source/Debug/PSDR.hex
	Source/PSDR F4.launch
	Source/src/main.c

I2C is (finally working) ADC still not working.
2016-05-08 00:53:48 -06:00
Michael Colton
155b2700d4 Oops, didn't actually commit the files. 2016-05-01 00:50:49 -06:00
Michael Colton
b3ee5db2b4 Saving current progress. Still some weird issues. Having trouble with I2C (again! It was such a pain to get working on the F4) and also something with the ADC I think.... I suppose it could be assembly issues of the F7 board too.... Hmmm. 2016-04-30 20:55:01 -06:00
Michael Colton
7c84c19d01 Okay! I've got it compiling and largely running on the F7! Still not everything is right, but a lot of it is. I think I am almost there! Maybe I'll get to include the F7 after all :D 2016-04-26 00:21:16 -06:00
Michael Colton
a24a6c6b8c I don't know if I am closer or further away. This stuff is hugely frustrating sometimes..... 2016-04-24 00:54:47 -06:00
Michael Colton
86a5916626 Progress, I think. The thing compiles and builds something, but it's only 1K and won't run. Trying to figure out what I am doing wrong. :/ 2016-04-24 00:17:37 -06:00
Michael Colton
57f3365484 Progress on copying stuff over for the F7. I am making quite a mess, I think I sure hope I can reverse this all if I need to!!! 2016-04-23 21:53:10 -06:00
Michael Colton
a211a0b9dd A heroic effort to push things forward. Now working includes the I2C interface and the code to talk to and start up the frequency synth. Flip flops are on, frequencies are being divided. No luck on actually getting a signal all the way through though. I currently suspect the transformers or the mixers..... how high can a quadrature sampling detector go again? :/ 2016-04-21 00:57:58 -06:00
Michael Colton
1890b25a4f PSDR 2.5 prototypes are assembled. This commit includes notes for things I want to change or improve (in the notes section of the schematic) as well as preliminary code changes to make it work on this hardware. Display comes on, lots of the parts are working, but no frequency synth yet, so it's hard to know how well the design is working. 2016-04-18 22:11:10 -06:00
Michael Colton
3bdb147fdf Some interface improvements. The filter bars now work, and the characters for the filter values are now better. This also improves the performance of navigating the interface. Also, added a basic volume display. 2015-12-30 21:18:31 -07:00
Michael Colton
43500cbef3 Honestly, it's been a while since I did any coding, with getting the kickstarter ready, so I don't actually remember what the state of the code is right now. I think I was working on getting the UART up so we can use the GPS. I'm commiting this as more of a backup than anything. 2015-03-06 22:54:22 -07:00
Michael Colton
d9c9939ab8 Update to bring github up to date with my files. 2014-10-28 00:36:55 -06:00
Michael Colton
46c832e409 Pretty big improvements to bitmap drawing code, and waterfall display code. Also a hack to deal with the red-things-stay-red bug (it's not ideal, it just blocks the encoder tick() if the display is drawing, doesn't seem to effect the feel of the interface in a bad way. Beginning to include GPS support. Working on some other display speedups (DMA and 16bit transfers, both are currently disabled) 2014-10-15 09:31:08 -06:00
Michael Colton
d04d7845cf Initial transmit support. Internal microphone working. Capacitive touch sensors working. Currently touch TOUCH1 to transmit, waterfall changes color and shows the filtered output that should be transmitted (except that it's MUCH noisier than it looks, due, I think to DSP issues.) 2014-10-06 11:03:34 -06:00
Michael Colton
7f0b21569c Just backing up. PSDR2 is receiving well, image rejection is good. Gain pot settings work. Audio out works (to earphones only, the speaker fails pretty badly, not sure why, but that's hardware anyway) 2014-10-01 10:48:27 -06:00
Michael Colton
817dcff56e Enclosure 3D files, Assembly Diagrams and Assembly Guide. Also so work on getting the firmware compatible with the PSDR2 hardware. Probably some junk as well. Lots of files. 2014-09-28 20:40:01 -06:00
Michael Colton
3d31149c20 Looking at adding PJRC optimized display code to the PSDR. But his chip is rather different (no hardware FIFO) so I'll need to implement the changes with DMA I think, I'm sure it will work well, but it's going to be some work.... Update to block diagram. Also, finally getting to work on next rev of hardware!! 2014-08-23 14:08:17 -06:00
Michael Colton
03b0cfa0d4 Has the beginnings of an S-Meter. Audio seems worse than before that was added, so I want to check on that. Uploading the image files (even though the PSDR uses them in code form... still, might be handy) 2014-08-22 00:23:39 -06:00
Michael Colton
003beac9e3 Added basic volume control (not sure why I didn't do that a long time ago!) also a HackADayPrize logo, can't hurt, right? A few other small things. 2014-08-02 01:26:47 -06:00
Michael Colton
4d89e8ab01 Further improvements to the menu system. Now, rather than a red underline, the item itself turns red. Logic for updating runtime settings and updating the display is improved. Main() is streamlined. Looks rather nice, if I do say so myself.
Does seem a little slow sometimes. Not sure why it would be (not more than it was before, anyway) Also, if you move through menu items too fast, some of them stay highlighted incorrectly.
2014-07-26 23:20:58 -06:00
Michael Colton
7b8b1ac023 Starting to (slowly) make changes to the schematic for the next hardware version.
Making/made a lot of changes to the graphics and some to the menu system. Want to do a commit before I change too much more, incase I screw things up, you see. Graphics look much better!
2014-07-26 19:07:45 -06:00
Michael Colton
a9f466d396 Added some color bitmaps and some code to draw them (way prettier graphics, here we come!), fixed a minor bug in the mode selection menu. 2014-07-23 09:31:17 -06:00
Michael Colton
31de146601 The main thing here is moving the FFT/Filtering/IFFT to a timer interrupt that has a lower priority than the audio capture/playback timer interrupt. This way I don't care how slow the display code runs in the main loop (for now) enabling me to have the audio processing and the display working at the same time. 2014-07-14 01:41:46 -06:00
Michael Colton
7b1da77c21 Haven't committed in a while :o . Currently waterfall is disabled while I work on audio processing. I am capturing, FFT, filter, IFFT, and output. It seems to be working partly. I don't think I am doing things right yet.
Also, starting to implement the menu system. Oh, and fixed some indentation, so it looks like there was more changed to main() than there really was....
2014-07-06 21:20:00 -06:00
Michael Colton
8c308e12c0 Got a timer up and going, and it's firing interrupts! Next up is to change the audio capture to use the interrupt and some buffers. Basically separate the display loop stuff. 2014-06-23 00:00:31 -06:00
Michael Colton
ffcb904b66 Initial commit to GitHub.
Includes the Source (as an Eclipse project) and the Hardware files (including schematic, layout, gerbers, and bill of materials.)

The firmware is extremely incomplete. At this point the DDS chips work (with controlled phase relationship), the LCD (with fast-ish SPI, scrolling, and GFX, modified from Adafruit's library), the encoder knob, and LED work.

The ADC is capturing, but not in a usable way, but it's enough to feed the DSP code and see a nice pretty waterfall. Timers, interrupts, and DACs are not working yet.
2014-06-22 17:49:43 -06:00