Author Topic: Psoc ud3 a noobs journey  (Read 556 times)

Offline oneKone

  • High Voltage Engineer
  • ****
  • Posts: 328
  • Karma: +10/-0
    • View Profile
Psoc ud3 a noobs journey
« on: September 02, 2021, 03:05:01 AM »
After looking @laci thread about his drsstc using a psoc Dev board and @Netzpfuscher ud3 project I thought I'd finally have a go at the project. I'm still very green when it comes to microcontrollers, my only experience is modifying some simple Arduino sketches...


My understanding atm is that I load the ud3_qfn into the psoc creator program, build and flash the psoc cy8ckit-059, I'm not sure if it's as simple as that? *I should add that I'm still waiting for my dev board in the mail*

For the circuit/hardware side of things I'm planning to use @profdc9 schematic as a reference to make my own board, it will more than likely be a mix of tht/SMT.

By the end of the project I'm hoping to gain a greater understanding as this really does seem like the future for drsstc.

Cheers
 

Offline acobaugh

  • High Voltage Experimenter
  • **
  • Posts: 69
  • Karma: +0/-0
    • View Profile
Re: Psoc ud3 a noobs journey
« Reply #1 on: September 02, 2021, 03:26:36 AM »
To be honest, if you're comfortable with SMT, the existing ud3 QFP board design may be the easiest path for you, rather than designing your own board. If you build your own board, you'll want to match the pinout for either the QFN or QFP project, or else you'll be modifying the project every time we release changes. My plan is to cut binary firmware files and get them published somewhere (I'm working on a documentation site for the UD3). I'm not super familiar with the dev board stuff, so maybe you've already thought this through.

You'll need a programmer, which the cy8ckit-059 board has as a breakaway, which is nice. If you don't go with a dev board, the cy8ckit-043 also has a psoc5 programmer which you can use standalone.

How are you planning on handling fiber signalling? The fibernet board is a nice add-on, and has some added features like a micro sd card, and the firmware for the fibernet gives you a CLI that you can use to re-program the UD3 from. Makes switching between firmware versions and doing development work a breeze.

Offline oneKone

  • High Voltage Engineer
  • ****
  • Posts: 328
  • Karma: +10/-0
    • View Profile
Re: Psoc ud3 a noobs journey
« Reply #2 on: September 02, 2021, 10:07:58 AM »
Cheers for the reply.

The only reason I was going to make my own board was because I was unaware there's a public available board/schematic, maybe I'm not looking hard enough.
My intention was to use the same pinout as labelled in the psoc creator, at least in the early stages it would give me a greater understanding as to how a ud3 board works (I'm more of a hands on learner).

As for fiber signalling, honestly I haven't got upto that yet. When I get upto that stage I think I'd look.i to the ifd-95 or something along those lines.

Offline Netzpfuscher

  • High Voltage Technician
  • ***
  • Posts: 128
  • Karma: +11/-0
    • View Profile
Re: Psoc ud3 a noobs journey
« Reply #3 on: September 02, 2021, 11:21:39 AM »
You need a fiber link which is capable of 460800 baud.

To the dev board version. You need to double check the pinout against psoc creator. I bet something has shifted to the profdc version. I don't take care of the pins, some are auto placed during synthesis. For me the dev board version is only for debugging com and OS.

And you need to stick to the schematic of the real thing. Don't let pins unconnected, they can trigger a sysfault.

https://github.com/Netzpfuscher/UD3_PCB
For Altium, but I think we can give you a pdf schematic and production files.

Offline acobaugh

  • High Voltage Experimenter
  • **
  • Posts: 69
  • Karma: +0/-0
    • View Profile
Re: Psoc ud3 a noobs journey
« Reply #4 on: September 02, 2021, 05:02:09 PM »
Attached are gerber/drill files, the project BOM, schematic, and a quick digikey cart (xlsx). Note that due to c19 craziness and all the associated supply-chain issues, a lot of parts on that list (which I put together Feb 2021) are currently out-of-stock, so you may need to substitute or shop around.

I think that zip file has everything you need to get PCBs made up. If not, let us know and we'll get you what you're missing.

There are a couple of component numbers missing on the silkscreen, and some where the orientation isn't obvious, but they're easy enough to figure out from the board layout and schematic. Let us know if you have trouble.

Oh, and the clock crystal in the BOM and my shopping cart are wrong. ABM8G-24.000MHZ-18-D2Y-T is the right part number, though technically you don't need it.

* Project Outputs for UD3B (1) (1).zip
* UD3B-schematic.pdf
* cart-and-bom.zip

Offline Hydron

  • Administrator
  • High Voltage Engineer
  • *****
  • Posts: 413
  • Karma: +15/-0
    • View Profile
Re: Psoc ud3 a noobs journey
« Reply #5 on: September 02, 2021, 10:08:39 PM »
I've been looking at the UD3 stuff again in the last few days (independently of this thread) and it looks like the QFN version is throwing errors when building - is it possibly out of date compared to the main TQFP target?

Offline acobaugh

  • High Voltage Experimenter
  • **
  • Posts: 69
  • Karma: +0/-0
    • View Profile
Re: Psoc ud3 a noobs journey
« Reply #6 on: September 02, 2021, 10:20:45 PM »
Quite possible. Can you share the error here, or create an issue in the gh project?

Offline oneKone

  • High Voltage Engineer
  • ****
  • Posts: 328
  • Karma: +10/-0
    • View Profile
Re: Psoc ud3 a noobs journey
« Reply #7 on: September 03, 2021, 06:39:45 AM »
@Netzpfuscher @acobaugh thankyou both for the clarification and help, my saying thankyou for the files and the support so far is a massive understatement.

I'll order the boards later this afternoon, in the mean time I'll look over Netzpfuscher "next gen drsstc" thread about what fiber links have been used.

If I'm honest I've been a big fan of tht for a very long time, but simply the appeal of this project is more than enough for me to switch to SMT.

Offline Hydron

  • Administrator
  • High Voltage Engineer
  • *****
  • Posts: 413
  • Karma: +15/-0
    • View Profile
Re: Psoc ud3 a noobs journey
« Reply #8 on: September 03, 2021, 12:09:25 PM »
It's certainly worth getting used to dealing with SMD - you'll be locked out of many parts otherwise, and (at least for larger pitch parts) SMDs can actually be quicker than dealing with THT, even for hand soldering.

The UD3 PCB doesn't use anything particularly challenging - the TQFP is the most likely to cause frustration, but a decent iron, some flux, good solder (make your life easier and go leaded) and some good solder braid should be all you need (mild magnification will help for inspection too).

RE errors - see attachment


Offline TMaxElectronics

  • High Voltage Engineer
  • ****
  • Posts: 216
  • Karma: +12/-0
    • View Profile
    • My random (and very empty) electronics blog
Re: Psoc ud3 a noobs journey
« Reply #9 on: September 03, 2021, 01:08:40 PM »
Quote
RE errors - see attachment
Ehm... those are my fault ::)
I added support for driving analog 0-20mA panel meters with an I2C io-expander and apparently forgot to add the Files into the QFN Version ::)
I'll change that and make another PR.

As for the assembly:
I think it will be hard to build one right now, as many parts are out of stock. Last time I checked the PSOC was only available from some obscure supplier (according to octopart at least), not sure if that changed since then. Otherwise the assembly should be easy enough :)

For the QFP I recommend first soldering opposing corner pads, then make sure everything is lined up, add plenty of flux to the pins and go over them with a little bit of solder on the tip of your iron. Remove any excess with solder wick ans you should be good  ;)
BUT BEWARE: the Psoc package has two dots on it, which are confusing (Both Netzpfuscher and me initially soldered them in the wrong way around ::)) I'll attach a picture of how it should look.

Quote
I'll look over Netzpfuscher "next gen drsstc" thread about what fiber links have been used.
The early coils used normal fiberoptic transmitters and receivers, sending UART and had a box with a Usb-uart converter on the other end. The new ones all use the Fibernet board I built, which uses 100Base-Fx SFP modules to connect to LAN.
But I don't think you'll be able to build one now because the PICs I use on that are definitely not available anywhere.

Heres the correct psoc orientation:

Offline acobaugh

  • High Voltage Experimenter
  • **
  • Posts: 69
  • Karma: +0/-0
    • View Profile
Re: Psoc ud3 a noobs journey
« Reply #10 on: September 03, 2021, 04:50:09 PM »
Personally, I find SMT much faster, easier, and more enjoyable (though 0603 parts are borderline) than through-hole. Just flux, place, tack, drag, done. No trying to hold parts down and flipping boards over constantly. Even desoldering and rework can be easier. Only time I ever lift a pad is with through-hole parts.

I think I grabbed the last PSOC digikey had in stock last February. Haven't seen it back in stock since.

Maybe time to go back to spark gap coils!

Offline Hydron

  • Administrator
  • High Voltage Engineer
  • *****
  • Posts: 413
  • Karma: +15/-0
    • View Profile
Re: Psoc ud3 a noobs journey
« Reply #11 on: September 03, 2021, 10:30:29 PM »
I've luckily already got a (very old - the version with the USB bug) TQFP board built up, plus a couple of QFN dev-boards to play with. I was planning on rolling my own board for a second controller - looks like I will need to use the devkit rather than just dropping the TQFP down.

As for the shortages, I unfortunately I know too well the difficulty of getting stuff at the moment - they are currently making my day job much more difficult than it should be.

Offline oneKone

  • High Voltage Engineer
  • ****
  • Posts: 328
  • Karma: +10/-0
    • View Profile
Re: Psoc ud3 a noobs journey
« Reply #12 on: September 13, 2021, 12:09:20 AM »
I got the psoc Dev kit and ud3 boards this past week, I'm hoping to order the components during the week to get this project officially going.



I also tried to program the cy8-kit to familiarise myself with the psoc creator. Unfortunately I ran into two errors. one of which I think I solved correctly, the other I'm still stumped on.
My process was:
• opening the ud3 master/ UD31.cywrk and setting the ud3-qfn as active
• setting the target device to the cy8-kit I have and trying to program it. These are where the two first errors came from

• I clicked the search function on the errors and changed the "bootable" module bootloader location. (common\binary\UARTldr)
• after trying to program again I finally get these warnings with the last two errors. I'm confident it's the methodology I've used in fixing the first two set of errors, I'm just unsure of where to go from here.




Offline Netzpfuscher

  • High Voltage Technician
  • ***
  • Posts: 128
  • Karma: +11/-0
    • View Profile
Re: Psoc ud3 a noobs journey
« Reply #13 on: September 13, 2021, 05:13:34 AM »
The bootloader in the qfn project is pointing to the UART_LDR project. Compile it first and then the UD3. Or just change the path to the precompiled binary, like you did.

The second error is fixed since yesterday, just pull a fresh version from the git. The problem is, that we all work with the TQFP Version and we sometimes forget to add new files to the qfn project. The warnings are okay.

Offline Hydron

  • Administrator
  • High Voltage Engineer
  • *****
  • Posts: 413
  • Karma: +15/-0
    • View Profile
Re: Psoc ud3 a noobs journey
« Reply #14 on: September 13, 2021, 11:19:52 PM »
Also it might default to building the "Debug" binary - select "Release" version in the dropdown box before building the UART_LDR.

Offline oneKone

  • High Voltage Engineer
  • ****
  • Posts: 328
  • Karma: +10/-0
    • View Profile
Re: Psoc ud3 a noobs journey
« Reply #15 on: September 14, 2021, 01:07:03 AM »
Cheers for the reply Netzpfuscher it compiled/programmed perfectly. @hydron I completely forgot about that 🤦‍♂️. I remember finding that setting while trying to figure out the problem, but didn't even think to select it.

Now the next step for me is looking into a form of communication. I found a link on github that allows serial connection over wifi using an esp32. To me this seems like a simpler solution than a fiber link, assuming the connection stays stable during use.

High Voltage Forum

Re: Psoc ud3 a noobs journey
« Reply #15 on: September 14, 2021, 01:07:03 AM »

 


* Recent Topics and Posts

post Re: Idea for QCW DRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
Today at 04:30:28 AM
post Keep blowing capacitors
[Spark Gap Tesla Coils (SGTC)]
pmlapl
September 27, 2021, 11:21:43 PM
post Re: Idea for QCW DRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Uspring
September 27, 2021, 06:47:52 PM
post Isogrid Features
[General Chat]
Patrick
September 27, 2021, 11:19:47 AM
post Re: Help with SSTC feedback circuits with 4046 IC and Schmitt Triggers
[Solid State Tesla Coils (SSTC)]
AFreshLad
September 27, 2021, 05:26:36 AM
post Re: Help with SSTC feedback circuits with 4046 IC and Schmitt Triggers
[Solid State Tesla Coils (SSTC)]
davekni
September 26, 2021, 07:51:40 PM
post Re: Help with SSTC feedback circuits with 4046 IC and Schmitt Triggers
[Solid State Tesla Coils (SSTC)]
AFreshLad
September 26, 2021, 02:26:25 PM
post Re: Help with SSTC feedback circuits with 4046 IC and Schmitt Triggers
[Solid State Tesla Coils (SSTC)]
AFreshLad
September 26, 2021, 10:32:14 AM
post Re: Tesla plate
[General Chat]
klugesmith
September 25, 2021, 11:09:30 PM
post Re: Measuring TC secondary parameters
[General Chat]
davekni
September 25, 2021, 09:51:49 PM
post Re: Tesla plate
[General Chat]
Duane B
September 25, 2021, 09:18:43 PM
post Re: Measuring TC secondary parameters
[General Chat]
Duane B
September 25, 2021, 09:16:36 PM
post Re: Idea for QCW DRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
September 25, 2021, 08:53:36 PM
post Re: Idea for QCW DRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Uspring
September 25, 2021, 06:49:45 PM
post Re: Idea for QCW DRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
September 25, 2021, 05:34:54 AM
post prodc9 interrupter plexi case
[Dual Resonant Solid State Tesla coils (DRSSTC)]
costas_p
September 24, 2021, 07:14:53 PM
post Re: Idea for QCW DRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Uspring
September 24, 2021, 05:37:56 PM
post Re: Tesla plate
[General Chat]
Benbmw
September 24, 2021, 05:20:01 PM
post Re: Idea for QCW DRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Netzpfuscher
September 24, 2021, 07:26:30 AM
post Tesla plate
[General Chat]
Duane B
September 24, 2021, 01:54:49 AM
post Re: Idea for QCW DRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
September 23, 2021, 09:08:23 PM
post Re: Idea for QCW DRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Uspring
September 23, 2021, 07:09:23 PM
post Re: Idea for QCW DRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
September 23, 2021, 05:46:38 PM
post Re: Help with SSTC feedback circuits with 4046 IC and Schmitt Triggers
[Solid State Tesla Coils (SSTC)]
AFreshLad
September 23, 2021, 11:12:25 AM
post Re: Idea for QCW DRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Netzpfuscher
September 23, 2021, 08:49:51 AM
post Re: Idea for QCW DRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
September 23, 2021, 06:15:34 AM
post Re: Help with SSTC feedback circuits with 4046 IC and Schmitt Triggers
[Solid State Tesla Coils (SSTC)]
davekni
September 23, 2021, 05:48:40 AM
post Re: Idea for QCW DRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Uspring
September 22, 2021, 07:21:12 PM
post Re: Help with SSTC feedback circuits with 4046 IC and Schmitt Triggers
[Solid State Tesla Coils (SSTC)]
AFreshLad
September 22, 2021, 10:41:20 AM
post Re: Help with SSTC feedback circuits with 4046 IC and Schmitt Triggers
[Solid State Tesla Coils (SSTC)]
davekni
September 22, 2021, 07:07:48 AM
post Re: Help with SSTC feedback circuits with 4046 IC and Schmitt Triggers
[Solid State Tesla Coils (SSTC)]
AFreshLad
September 22, 2021, 05:26:40 AM
post Re: Measuring TC secondary parameters
[General Chat]
MRMILSTAR
September 22, 2021, 05:14:30 AM
post Measuring TC secondary parameters
[General Chat]
Duane B
September 22, 2021, 05:01:22 AM
post Re: Load resistance and discharge terminal for my 14-stage CW multiplier
[Voltage Multipliers]
MRMILSTAR
September 21, 2021, 10:33:34 PM
post Re: Futurist's DRSSTC 0.5
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Mads Barnkob
September 21, 2021, 07:21:50 PM
post Re: Load resistance and discharge terminal for my 14-stage CW multiplier
[Voltage Multipliers]
klugesmith
September 21, 2021, 05:24:35 PM
post Re: BrOdin coil - High power Big sparks!
[Dual Resonant Solid State Tesla coils (DRSSTC)]
futurist
September 21, 2021, 04:18:47 PM
post Load resistance and discharge terminal for my 14-stage CW multiplier
[Voltage Multipliers]
MRMILSTAR
September 21, 2021, 06:30:44 AM
post Re: Help with SSTC feedback circuits with 4046 IC and Schmitt Triggers
[Solid State Tesla Coils (SSTC)]
davekni
September 21, 2021, 06:04:52 AM
post Re: BrOdin coil - High power Big sparks!
[Dual Resonant Solid State Tesla coils (DRSSTC)]
fh89
September 21, 2021, 03:56:28 AM
post Re: Idea for QCW DRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
johnnyzoo
September 20, 2021, 09:24:10 PM
post Re: BrOdin coil - High power Big sparks!
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Uspring
September 20, 2021, 05:07:43 PM
post Re: Large Rectifier Tube
[General Chat]
Benbmw
September 20, 2021, 04:12:27 PM
post Re: Proper phase lead adjustment at the input
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Chrisader
September 20, 2021, 10:40:33 AM
post Re: Help with SSTC feedback circuits with 4046 IC and Schmitt Triggers
[Solid State Tesla Coils (SSTC)]
AFreshLad
September 20, 2021, 10:39:59 AM
post Re: BrOdin coil - High power Big sparks!
[Dual Resonant Solid State Tesla coils (DRSSTC)]
futurist
September 20, 2021, 10:38:31 AM
post Re: Large Rectifier Tube
[General Chat]
klugesmith
September 20, 2021, 07:07:55 AM
post Re: Help with SSTC feedback circuits with 4046 IC and Schmitt Triggers
[Solid State Tesla Coils (SSTC)]
AFreshLad
September 20, 2021, 06:03:57 AM
post Re: Help with SSTC feedback circuits with 4046 IC and Schmitt Triggers
[Solid State Tesla Coils (SSTC)]
davekni
September 20, 2021, 05:31:57 AM
post Re: Help with SSTC feedback circuits with 4046 IC and Schmitt Triggers
[Solid State Tesla Coils (SSTC)]
AFreshLad
September 20, 2021, 04:59:17 AM

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 
SimplePortal 2.3.6 © 2008-2014, SimplePortal