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

nano CUL not working #25

Closed
jaccol opened this issue Dec 1, 2021 · 11 comments
Closed

nano CUL not working #25

jaccol opened this issue Dec 1, 2021 · 11 comments

Comments

@jaccol
Copy link

jaccol commented Dec 1, 2021

I bought a nano CUL, but after loading this software nothing happens.

I suspect that the pinout of the device is different from the pinout that is currently supported.

The device I have is this one: https://www.smart-home-komponente.de/nano-cul/nano-cul-868-extern/
I guess - on inspection - that the cc1101 is connected to 3.3V, while there is only a board definition for a atmega328p w/ 5V.

I followed the instructions from the README, pointed the arduino UI to evofw3.ino and pushed 'Upload'. There were no errors in that step.

From here I expected the 'Serial Monitor' to show some output. nothing. I tried giving commands like !F, V, !V, etc but there never was any response from the Arduino.

Can anyone give me some pointers on how to proceed debugging?

Thanks,

Jacco

@ghoti57
Copy link
Owner

ghoti57 commented Dec 1, 2021

The 5v is the power to the processor, not the cc1101.

It's usb powered so probably 5v. You just need to make sure there's not a regulator reducing the cpu input power to 3.3v

Might be worth asking Smart Home Komponente about schematics

@ghoti57
Copy link
Owner

ghoti57 commented Dec 1, 2021

There are alternative build options for the 328 that are different pinouts to the cc1101

@jaccol
Copy link
Author

jaccol commented Dec 1, 2021

There is a pdf detailing which pins are used:
https://www.smart-home-komponente.de/support/aufbauanleitungen/

But if I read your board definition, the main question is the order of INT0/INT1
could I try a 'pro' layout in stead of a 'nano' or are there other differences between those?

@ghoti57
Copy link
Owner

ghoti57 commented Dec 2, 2021

That's the only difference between the pro and the nano

@benjaminvdb
Copy link

@jaccol Were you able to get the firmware working? I'm considering to purchase the same USB dongle, since the one referenced in this repository is out-of-stock.

@jaccol
Copy link
Author

jaccol commented Jan 3, 2022

I have not been able to get it to work, but I also did not spend much time on it, busy with other projects. I won't have physical access to the device for the next three weeks ...

@dennisvbussel
Copy link

dennisvbussel commented Feb 16, 2022

FYI i build a custom dongles using the Arduino Pro Micro 3.3V 8Mhz and a 868 radio. It only required a minor rework.

My tip is double check your SPI connection. Mine had the CS pin routed to the led. Unlikely though that de nanocul usb you bought has this issue.

image

@ghoti57
Copy link
Owner

ghoti57 commented Feb 16, 2022

@dennisvbussel

You appear to have moved the connection for the SPI CS pin,
What build options did you use to build?

The standard options available for
Atmega32u4 (3V3 8MHz) , pinout Pro Micro
should have compiled the firmware to use pin 18 ( Port B pin 6) on your board.

I suspect you used the SHA atmega32u4 pinout option which does attempt to use Port B Pin 0 for CS.
This pin does not appear on an edge connector which is why you appeared to need to solder on a wire.

@ghoti57
Copy link
Owner

ghoti57 commented Feb 16, 2022

@dennisvbussel

You might want to look at this picture.

PXL_20210126_143445887

I found a lot of variation in the antennas I used early on.
I found the ones that had a much longer effective length were not working as well.

The one at the top was by far the best, so I experimented with trimming one of the longer ones and improved it to the same as the top one.

You can see that I progressively trimmed more away each time before getting the best result.

The length of the wire in the top antenna was 137mm, By the time I finished the bottom one it was about 143mm.
The antenna in your picture looks significantly longer.

When you calculate the length (L) you need to take into account the coil diameter(D), wire diameter(d), number of coils(n) and stub length(l).

L = l + n x pi x ( D - d )

You might want to play with the length of your antenna.

For reference, the antenna in this image works very well.
https://www.amazon.co.uk/dp/B07NJV1F6F/
You can see it's very similar to the top one above

@dennisvbussel
Copy link

Yes indeed @ghoti57, I used the default build. Probably it would have been easier to just update te IO config however, now I get a cool looking led blink whenever the SPI bus is addressed :).

Regarding the antenna, I bought and assembled it as-is and so far it is working perfectly within my entire house :).

Antenna theory is cool but can be tricky to tune without proper equipment.

@ghoti57
Copy link
Owner

ghoti57 commented May 12, 2023

Used incorrect configuration resulting in need to patch connections

@ghoti57 ghoti57 closed this as completed May 12, 2023
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

4 participants