- Posts: 4402
Developing a universal module
- PhracturedBlue
- Topic Author
- Offline
oshpark.com/shared_projects/Df3iWl1J
There is nothing wrong with the v1.2 board. The only difference between the two is the addition of an extra socket to support the xl2500 module. This module comes with 0.1" pin headers installed, so it requires fewer parts to install than the aliexpress or skyartec modules. However, it uses an SMA antenna connector, and I installed it facing the opposite direction as the other modules which may make it more difficult to mount in your Tx. I probably would recommend the Aliexpress CC2500 module given the choice.
The 1.4 board has what is probably a preferable layout if you plan to use the XL2500 module, but honestly I'm not sure which is best yet. I won't have those for at least another week.
Anyhow, I now have 24 of these v1.3 boards. I only need a couple, so I'll offer the rest to the forum.
The rules:
* Only 2 boards per person max
* Price is $1US + shipping to wherever you are
* Payment via PayPal (and you cover any additional fees)
* Contact me via PM. I don't want to see a bunch of requests in this thread
* If you aren't running Deviation, please don't ask for one. While the design is free for anyone to use, I'd like to reserve these boards for folks actually using Deviation (though of course I have little way to know, so I'm just asking you to be honorable)
I have a few ATTinys I can spare as well. For an extra $2US I'll program it and solder it into the board for you. Only one per person though. I don't have enough to go around, so don't be disappointed if you don't get one.
The boards come as just a board (unless you get one with the ATTiny installed in which case you get that too). I am not supplying any of the transceiver modules. you will need to buy those yourself.
I am not promising that this is a first-come-first-serve system. I reserve the right to provide boards to whomever I like.
Don't expect rush service here. I don't have a lot of free time, and this isn't exactly my top priority.
Lastly, I make no guarantees this will work for you. As of this point, no one but me has successfully used one. I will do my best to help with issues, but that is all I can offer. Also, this is NOT a plug-and-play solution. You must be comfortable with a soldering iron and modifying your transmitter. Make sure you understand the type of work needed to put one of these together and install it in your Tx.
All of the documentation that exists at the moment is here:
bitbucket.org/PhracturedBlue/deviation/w...20the%20Multi-Module
bitbucket.org/PhracturedBlue/deviation/wiki/ModuleInstallation
And you might want to read over this post for an idea of what you need:
www.deviationtx.com/forum/7-development/...dule?start=160#20326
Please Log in or Create an account to join the conversation.
- nusbr
- Offline
- Posts: 43
But i have Problems with programming the Atmel.
I have Upgraded the TX with Nightly build "deviation-devo8-v4.0.1-689090a" Then fornatted the Drive and installed the Filesystem. Then copied the avr.hex tho the root directory.
After uphrading the TX with "programmer-devo8.dfu" i have always ERR: No switch cfg.
Could you help me?
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
specifically this:
enable-switch=A13
enable-cyrf6936=B12
has_pa-cyrf6936=1
enable-a7105=S1
has_pa-a7105=1
enable-cc2500=S3
has_pa-cc2500=1
enable-nrf24l01=S402
has_pa-nrf24l01=1
The error messages you'll see are:
ERR: No switch cfg -- hardware.ini is notproperly configured
ERR: Bad avr.hex -- avr.hex is not in the proper location
ERR: No switch found -- avr didn't initialize. this one is common and you need to try several times before giving up. Itoculd be improper wiring or just that the code isn't working properly. I'm still working on this
ERR: Unknown AVR -- This means the AVR is there but the dfu code didn't initialize properly, try it again
ERR: Erase failed -- could not erase the device. Try again
ERR:Failed at page 0x -- programming failed, try again
The dfu programmer still needs more work. it is not very reliable. I'm working on it.
Please Log in or Create an account to join the conversation.
- nusbr
- Offline
- Posts: 43
But now i have Error Message "ERR: No switch found"
I tried several times, but no chance.
Is it possible to program them in PCB with the P2 Connector?
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
The notch on the chip must point the other way.
Please Log in or Create an account to join the conversation.
- nusbr
- Offline
- Posts: 43
Installed correctly. But when i configure the hardware.ini i the TX does not start up (screen keeps black, but illuminated) and i could not switch off the TX. For Switch off, accu must remove.
Installed Modules on PCB V1.2
CYRF6936
A7105-500m
NRF24L01
CC2500+PA+LNA wireless module
Hardware.ini (does not start up)
[modules]
; there is no need to enable the cyrf6936 module unless
; it is wired to an alternate port. It is Enabled automatically otherwise
enable-switch=A13
enable-cyrf6936=B12
has_pa-cyrf6936=1
enable-a7105=S1
has_pa-a7105=1
enable-cc2500=S3
has_pa-cc2500=1
enable-nrf24l01=S402
has_pa-nrf24l01=1
Hardware.ini (does start up, but not work)
[modules]
; there is no need to enable the cyrf6936 module unless
; it is wired to an alternate port. It is Enabled automatically otherwise
enable-switch=A13
enable-cyrf6936=B12
has_pa-cyrf6936=1
;enable-a7105=S1
;has_pa-a7105=1
;enable-cc2500=S3
;has_pa-cc2500=1
enable-nrf24l01=S402
has_pa-nrf24l01=1
Thank you for helping
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
You need to add this to target/devo8/target_defs.h:
#define HAS_PROGRAMMABLE_SWITCH 1
I've just rebuilt the devo8 nightly with this change made. I didn't enable the devo10 or devo7e yet.
It is definitely a bug that the code crashes when using a switch that isn't configured. I've known about that for a while, but I'll get it fixed soon.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- nusbr
- Offline
- Posts: 43
I have made Photos from PCB assembly. If you need them for the Manual, i can send you.
Please Log in or Create an account to join the conversation.
- briareos7777
- Offline
- Posts: 11
Is it just avrdude? If so, what would the command line be to program those chips with the given hex file for deviation?
What should the fuses be set to, if avrdude is used.
Please Log in or Create an account to join the conversation.
- nusbr
- Offline
- Posts: 43
The Fuses i have not set
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Offline
- Posts: 1016
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
The following AVRDude commands will program it (change t84 to the t44 or t24 depending on your ATTiny, and change 'usbasp' as needed):
avrdude -p t84 -c usbasp -e -U flash:w:avr.hex
avrdude -p t84 -c usbasp -U lfuse:w:0xe2:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m
You don't need a capacitor to make this work. I'm speculating that it would make the programming function more reliable, but I haven't tested it yet. If you program with an external programmer it is irrelevant.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
nusbr wrote: I have made Photos from PCB assembly. If you need them for the Manual, i can send you.
If you have pictures showing steps I missed in the instructions, please provide them. You can just attach them to a post in this thread.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- blackmoon
- Offline
- Posts: 402
You need to obtain the avr.hex file from here:
If I understood it correctly, at the moment only devo 8 has the switch implemented in the code.
Do you have an eta for the 7e and 10 ?
I'm just waiting for the 1.2 pcb to complete my module, received the tinys Friday.
And as always thank you for all the work you do.
Please Log in or Create an account to join the conversation.
- nusbr
- Offline
- Posts: 43
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Topic Author
- Offline
- Posts: 4402
I'm in the process of updating the avr.hex so that Deviation can detect the presence of the switch. this should make debug easier.
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Offline
- Posts: 1016
U didn't gave the hex file link in the wiki .... if I am not wrong
Please Log in or Create an account to join the conversation.
- nusbr
- Offline
- Posts: 43
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Development
- Developing a universal module