Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 48
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
All today's birthdays', congrats!
Mathias (41)
slash128v6 (52)


Next birthdays
01/31 Mathias (41)
01/31 slash128v6 (52)
02/01 Barry (70)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: Tesla Coils
« Previous topic | Next topic »   

"Teslink" multiplexed fibre optic link

1 2 3 
Move Thread LAN_403
Steve Conner
Thu May 01 2014, 10:31AM Print
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
Hi all

You might be interested in my new project. It uses two 18 series PICs (programmed in old-school assembly smile ) to transmit multiple channels of data down a single optical fibre, for Tesla coil control.

The data consists of a single interrupter channel sampled at 200kHz, plus a subcode data stream running at 50kbit/s in a format somewhat inspired by DMX, that can encode any other data you want. I plan to use this to send a couple of analog voltages, which will be sampled by the transmitting PIC's ADC and output by the receiving PIC's PWM channels, and some general purpose digital lines.

The prototype setup uses two PIC18F4431 processors clocked at 40MHz. It shows a latency of about 120us, and a jitter of 5us in the interrupter signal, as would be expected from the 200kHz sampling rate. The scope shot shows a 5us pulse being transmitted.

The data on the line is currently 1MBit/s, Manchester encoded to avoid long runs of 0s or 1s, so AC coupled Toslink receivers can be used.

The system allows for various kinds of parity and error detection, but I haven't finished all that code yet. smile When the code is done I will release it as open source.


1398940261 30 FT0 Teslink
Back to top
Mads Barnkob
Thu May 01 2014, 10:42AM
Mads Barnkob Registered Member #1403 Joined: Tue Mar 18 2008, 06:05PM
Location: Denmark, Odense C
Posts: 1968
Interesting that you took on this project, I have thought about using digital IC MUX to do the same, however much cruder.

Will it be able to transmit data out from the coil? so we could monitor temperatures, voltages, currents etc?
Back to top
Steve Conner
Thu May 01 2014, 10:51AM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
The current system only transmits data in one direction, as it is designed around a single fibre. There's no reason you couldn't use two copies of the system though.

This is intended as a simple, low-cost system using only through-hole components. The cost difference between the Toslink optics and the HFBR series more than pays for the PICs.

I have plans for a "Teslink-2" using gigabit SFP transceivers, which can be found quite cheaply on Ebay. These could be connected to the Dallas DS90UR241/124 serdes chipset to give 24 completely general purpose digital lines sampled at 4MHz, or hooked up directly to the FPGA in a future FPGA-based driver. This would be a serious project needing 4 layer boards and SMT assembly, though.
Back to top
HV Enthusiast
Thu May 01 2014, 12:50PM
HV Enthusiast Registered Member #15 Joined: Thu Feb 02 2006, 01:11PM
Location:
Posts: 3068
Great project.

I've actually done this before and use it pretty extensively, although i didn't use it for Tesla Coils.

I use it for transmitting control and analog data to a high voltage floating deck which contains filament and grid power supplies for high power microwave tubes. The filaments and grids must be monitored and controlled via fiber optic, as the deck is floating at anywhere from 40-60kV, so this was a way of doing it without using a single fiber for every single signal.

I used standard Agilent HFBR fiber optics.

Keep us posted on your efforts!
Back to top
Steve Conner
Fri May 02 2014, 05:02PM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
A bit more progress to report:

Implemented some error checking including parity, to drive a "data valid" LED and set the outputs to a failsafe state if anything goes wrong.

Hooked up to a 15m Toslink cable and had some fun testing the error detection by pulling the cable out of the receiver.

Implemented the subcode reception state machine.

Successfully transmitted the ASCII string "Tesla" over the subcode channel.

Next week I'll get the subcode channel working with live data from the ADCs and the programming will be more or less finished. smile


1399050144 30 FT162849 Teslastring
Back to top
Steve Conner
Fri May 09 2014, 12:12PM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
As promised, the code! smile This version currently transmits the interrupter signal and two 10-bit analog values, which are reconstructed as 2.4kHz PWM at the receiver. Feel free to hack away! It could do with some general-purpose digital outputs.


]teslink.zip[/file]
]teslinkrx.zip[/file]
Back to top
Thomas W
Fri May 09 2014, 04:19PM
Thomas W Registered Member #3324 Joined: Sun Oct 17 2010, 06:57PM
Location:
Posts: 1276
I have som interest in fibre optics. My main thing is i can't find any good places to find the fibre optic cables, recievers, transmitters or trancievers.

Any good pointers?


And nice work steve!
Back to top
Steve Conner
Fri May 09 2014, 04:39PM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
Thanks! smile I always got my fibre optic cables on Ebay, and the transmitters and receivers from Farnell.

For this project, the 15M cable cost £10 and the receiver and transmitter were about 75p each.
Back to top
Thomas W
Sat May 10 2014, 11:16AM
Thomas W Registered Member #3324 Joined: Sun Oct 17 2010, 06:57PM
Location:
Posts: 1276
Thanks Steve, i found the ones you are talking about now.

Also had a look at the SFP transceivers
Very cheap and interesting really, as it happens each module works out around the price of a pair. maybe a bit more when used and from ebay...

One thing i did notice, is that they should be mounted into a frame on a PCB.. where would you get somthing like that? I searched high and low online with little to no sucess.

Back to top
Steve Conner
Sat May 10 2014, 11:55AM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
The SFP transceivers need a LVDS input. Not much use without something like a FPGA or the Dallas chips I mentioned.

You can get the SFP "cages" from Digikey. Link2
Back to top
1 2 3 

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.