Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wiring... #1

Open
michelinok opened this issue Jan 20, 2017 · 7 comments
Open

Wiring... #1

michelinok opened this issue Jan 20, 2017 · 7 comments

Comments

@michelinok
Copy link

Hi!
Can you please share how to connect the gps and the sil5351 to the Arduino Uno r3?
Please.... a wiring diagram would be very great

@alexander-sholohov
Copy link
Owner

alexander-sholohov commented Jan 24, 2017

Hello!

I've ordered ArduinoUno to test this. I'll prepare the drawings later. However, the inter-chip connection is pretty simple.

SCL - Atmega328:pin28 - si5351a:pin4
SDA - Atmega328:pin27 - si5351a:pin5
Tx from GPS to Atmega328:pin2 (rxd)
RF_OUT - si5351a:pin5 (clk0)

It is necessary to make a couple of simple changes in code for Atmega328 (Arduino Uno R3):
https://github.com/alexander-sholohov/si5351-beacon/blob/master/si5351-beacon.ino

Line 140. Should be:
#define TIME_SLICE_GPS
//#define TIME_SLICE_DS3231

Line 149: Should be
HardwareSerial& gpsSerial = Serial0;
(Serial0 instead of Serial1)

Be careful in connecting si5351 to ArduinoUno without buffering. si5351 is not 5v tolerant.

@michelinok
Copy link
Author

michelinok commented Feb 19, 2017 via email

@alexander-sholohov
Copy link
Owner

Arduino UNO has only one serial port. Serial terminal and GPS are sharing the wires. GPS is dominant. You have to temporally disconnect GPS to be able to send commands through the terminal.

@michelinok
Copy link
Author

Will this board work without disconnectiong the gps? Is there a lot of work to adapt the code?

http://www.banggood.com/it/Mega2560-R3-ATMEGA2560-16AU-CH340-Board-For-Arduino-Without-USB-p-1044806.html?rmmds=search

@alexander-sholohov
Copy link
Owner

According to the documentation, Arduino Mega2560 has three additional serial ports. Sure, it will work without disconnecting gps. No any code modification. Just choose proper uart port at line 149.

Why having terminal access is important to you? Are you going to manual start/stop transmission? Any other actions?

@michelinok
Copy link
Author

start stop transmission...and maybe debug code printing to the serial terminal

@mike-hb
Copy link

mike-hb commented Aug 23, 2018

Thanks for this nice project. -- I added the NT7S- si5351 library which uses a 10 mHz resolution to direct program the needed and modulated frequencies by the given mHz.
Furthermore, I added a digital control loop to obtain a GPS-disziplined osciillator with the very cheap ublox6 (chinese GPS-system with pps) -- works really nice with an absolut stabillity within 10^-8.
All is running on the Arduino Nano 328 with nearly 28 kByte in program memory.

I can add my sources to your repository or for review of my code -- if you request it.

vy 73
Michael, DK5HH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants