Developing a universal module

More
13 Mar 2014 03:15 #21517 by PhracturedBlue
Replied by PhracturedBlue on topic Developing a universal module
I got my v1.3 boards today, and they work fine, so here is a link to them:

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.

More
15 Mar 2014 20:58 #21573 by nusbr
Replied by nusbr on topic Developing a universal module
I have installed the PCB 1.2
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.

More
15 Mar 2014 23:38 - 15 Mar 2014 23:42 #21578 by PhracturedBlue
Replied by PhracturedBlue on topic Developing a universal module
If you get 'no switch cfg' it is because you didn't update your hardware.ini file
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.
Last edit: 15 Mar 2014 23:42 by PhracturedBlue.

Please Log in or Create an account to join the conversation.

More
16 Mar 2014 10:00 #21584 by nusbr
Replied by nusbr on topic Developing a universal module
I have changed the entries in hardware.ini
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?
Attachments:

Please Log in or Create an account to join the conversation.

More
16 Mar 2014 13:38 #21585 by PhracturedBlue
Replied by PhracturedBlue on topic Developing a universal module
you mounted the avr chip upside down.

The notch on the chip must point the other way.

Please Log in or Create an account to join the conversation.

More
16 Mar 2014 21:00 #21603 by nusbr
Replied by nusbr on topic Developing a universal module
Now i have programmed a Attiny84A with a USBtinyISP V2 AVR ISP Programmer.
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.

More
16 Mar 2014 21:51 - 16 Mar 2014 21:54 #21604 by PhracturedBlue
Replied by PhracturedBlue on topic Developing a universal module
I just looked, and when I made the switch configurable, I configured it to be disabled ...oops.

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.
Last edit: 16 Mar 2014 21:54 by PhracturedBlue.

Please Log in or Create an account to join the conversation.

More
17 Mar 2014 00:57 #21606 by PhracturedBlue
Replied by PhracturedBlue on topic Developing a universal module
I did some experimentation and the AVR programs 100% accurately if my logic analyzer is attached, and is not as reliable without it. I also saw 100% accuracy with my oscilloscope with a 10x probe attached to SCK. So I'm guessing that adding a small cap to sck would help. Once the fuses are programmed it seems 100% reliable, so I'm not really sure what is going on. Anyhow, it does work, it just may take some patience.

Please Log in or Create an account to join the conversation.

More
17 Mar 2014 06:34 #21612 by nusbr
Replied by nusbr on topic Developing a universal module
Ok thank you. Is it right, that the nightly build from today works? Where i must mount a capacitor?

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.

More
17 Mar 2014 06:48 - 17 Mar 2014 07:15 #21613 by briareos7777
Replied by briareos7777 on topic Developing a universal module
What software is used to program the attiny24a / attiny84a with the usbasp v2.0?

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.
Last edit: 17 Mar 2014 07:15 by briareos7777.

Please Log in or Create an account to join the conversation.

More
17 Mar 2014 07:51 #21614 by nusbr
Replied by nusbr on topic Developing a universal module
I used "myAVR ProgTool"
The Fuses i have not set

Please Log in or Create an account to join the conversation.

More
17 Mar 2014 08:51 #21615 by SeByDocKy
Replied by SeByDocKy on topic Developing a universal module
Should work also with AVRdude ? I guess yes ...

Please Log in or Create an account to join the conversation.

More
17 Mar 2014 13:07 - 17 Mar 2014 13:14 #21616 by PhracturedBlue
Replied by PhracturedBlue on topic Developing a universal module
you need to set the fuses to be 0xe2, 0xdf, 0xff. This sets the AVR to run at 8MHz and is critical to the operation of the switch.

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.
Last edit: 17 Mar 2014 13:14 by PhracturedBlue.

Please Log in or Create an account to join the conversation.

More
17 Mar 2014 13:09 #21617 by PhracturedBlue
Replied by PhracturedBlue on topic Developing a universal module

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.

More
17 Mar 2014 13:52 #21618 by PhracturedBlue
Replied by PhracturedBlue on topic Developing a universal module
FYI, I've updated the build instructions to clarify all the points made in this thread so far.

Please Log in or Create an account to join the conversation.

More
17 Mar 2014 15:33 #21619 by blackmoon
Replied by blackmoon on topic Developing a universal module
I just saw that in the instructions there is no link for the avr.hex file.

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. :D

Please Log in or Create an account to join the conversation.

More
17 Mar 2014 17:34 #21620 by nusbr
Replied by nusbr on topic Developing a universal module
does the nightly build ftom today work? I tried to bind with my Devo Receiver. Then i tried the programming dfu file. ERR: No switch found. But i have programmed the AVR with correct fusebits

Please Log in or Create an account to join the conversation.

More
17 Mar 2014 19:56 #21625 by PhracturedBlue
Replied by PhracturedBlue on topic Developing a universal module
yes the nightlies from today should work.

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.

More
17 Mar 2014 19:57 #21626 by SeByDocKy
Replied by SeByDocKy on topic Developing a universal module
PB,

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.

More
17 Mar 2014 20:17 #21627 by nusbr
Replied by nusbr on topic Developing a universal module
Do you have any idee, who this does not work. I could Never update in the TX. ERR: no Switch found. Can i measure anithing to debug the failure?

Please Log in or Create an account to join the conversation.

Time to create page: 0.113 seconds
Powered by Kunena Forum