Git Product home page Git Product logo

bastwan's Introduction

BastWAN

BastWAN is all the best in the world format Feather and LoRa with a RAK4260 core, 32 bits of power!, Feather pin to pin compatible with a micro USB port.

BastWAN is supported in the Arduino development environment and RIOT OS on BastWan and LowPower.

We love all our Feathers equally, but this Feather is very special.

That doesn't mean you cant also use it with Arduino IDE! At the Bast's heart is an RAK4260 ARM Cortex M0+ processor, clocked at 48 MHz and at 3.3V logic, the same one used in the new Arduino Zero. This chip has a whopping 256K of FLASH (8x more than the Atmega328 or 32u4) and 32K of RAM (16x as much)! This chip comes with built in USB so it has USB-to-Serial program & debug capability built in with no need for an FTDI-like chip.

Here's some handy specs!

  • Light as a (large?) feather - 5 grams
  • RAK4260 @ 48MHz with 3.3V logic/power
  • 256KB of FLASH + 32KB of RAM
  • No EEPROM
  • 32.768 KHz crystal for clock generation & RTC
  • 3.3V regulator with 500mA peak current output
  • USB native support, comes with USB bootloader and serial port debugging
  • You also get tons of pins - 20 GPIO pins
  • Hardware Serial, hardware I2C, hardware SPI support
  • PWM outputs on all pins
  • 6 x 12-bit analog inputs
  • 1 x 10-bit analog ouput (DAC)
  • Built in 100mA lipoly charger with charging status indicator LED
  • Pin #13 red LED for general purpose blinking
  • Power/enable pin
  • 4 mounting holes
  • Reset button

LoRa Features

  • Industry's lowest power LoRa® SiP device
  • Fully supported 862 to 1020 MHz frequency coverage
  • Receive Sensitivity down to -148 dBm
  • Maximum Transmit Power up to 20 dBm
  • Low RX current of 17mA (typical)  LoRa Technology, (G)FSK, (G)MSK

The Bast WAN uses the extra space left over to add a Cryptographic chip ATECC608A.

Easy reprogramming: the Bast-WAN comes pre-loaded with the UF2 bootloader, which looks like a USB storage key. Simply drag firmware on to program, no special tools or drivers needed! It can be used to load up CircuitPython, PXT MakeCode or Arduino IDE (it is bossa-compatible)

Comes fully assembled and tested, with the UF2 USB bootloader. We also toss in some header so you can solder it in and plug into a solderless breadboard.

Lipoly battery and USB cable not included (but we do have lots of options in the shop if you'd like!)

Wiki and Getting Started

Getting Started in our Wiki

Links & References

License

OpenSourceLicense

Electronic Cats invests time and resources providing this open source design, please support Electronic Cats and open-source hardware by purchasing products from Electronic Cats!

Designed by Electronic Cats.

Firmware released under an GNU AGPL v3.0 license. See the LICENSE file for more information.

Hardware released under an CERN Open Hardware Licence v1.2. See the LICENSE_HARDWARE file for more information.

Electronic Cats is a registered trademark, please do not use if you sell these PCBs.

November 2019

bastwan's People

Contributors

jorgeuri avatar lizethgm avatar sabas1080 avatar wero1414 avatar xpeqex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bastwan's Issues

PA13 pin definition

Hi, just a quick question, what is the pin number/definition for the SAM R34 pin PA13? My board uses it for the RX/TX switching but I can't access it. I tried to find a reference for this pin in the board variant but wasn't able to find anything. Can anyone help? Thanks.

[Help] Flashing UF2 USB bootloader

Hi,

I just wanted to know if there is a guide to or something like that to flash the BastWAN, I have just built some boards myself but I don't know where the UF2 USB bootloader can be found.

Best regards,
Jaime.

LoRaWAN and pinouts

Hello there!

I'm also trying to resolve this issue on the TTN forum but here I'm just looking at the BastWAN core aspect.

I recently bought this SAM R34 evaluation board from Tindie with hopes to get to know the processor before doing a custom HW implementation.

After experimentation with ASF and Mbed OS, I was happy I found this Arduino core for the RAK4260 (so also for SAM R34). I managed to burn the UF2 bootloader and upload and test simple Arduino sketches. I managed to get a direct LoRa link working using the Arduino LoRa library. This worked well.

I ran into problems when trying to use LoRaWAN though. I tried using a modified TinyLoRa version, the Beelan-LoRaWAN library with the example from this repo and also the Arduino LMIC library.

When using the TinyLoRa test sketch, the serial output (with memory register debug printouts) looks exactly the same as it does with a working Arduino + SX1276 circuit. But I'm definitely in range of the gateway and I have correct keys. I tried both OTAA and ABP.

When using the Beelan example found on this repo, the printout also acted as if the transmission was happening normally. When I turned on memory register debug printouts though, I found out that the communication with then chip happened only during initialization and there was no communication when transmitting. Again, I didn't receive anything on the TTN console neither with OTAA or ABP.

When I uploaded the LMIC test sketch (with correct pinouts and everything), the processor just crashed and wouldn't communicate. I needed to reburn the bootloader.

I also need to ask about the pinouts. I found out that direct LoRa transmissions only work if the RFM_SWITCH is set to high. Apparently the status of RFM_RFSW_ON and RFM_TCX_ON doesn't affect this at all. I can not find the RX/TX pin in the pin map though. What is the system in this pin mapping? I couldn't find any correlation between the BastWAN pin map and the RAK4260 pinout or even the SAM R34 pinout. Not one pin number seems to match. Does anyone know how the pin mapping is made?

If anyone can advise me about any of this I would really appreciate that. I would like to use this core but it's very hard at the moment. Thanks!

SPI flash

Don't see any reference to SPI flash in schematics. Which PIN is used for flash CS?

LoRaWAN not working with ElectronicCats fork of arduino-lmic

I am trying to get the BastWAN to work on LoRaWAN.
Region US915
Gateway RAK7258 (of course)
Server Chirpstack running on RPi 4

I started with the BeeLAN library and it works somehow, but it seems to be limited in functionality (Receiving and processing MAC commands.). In addition, I need support for AS923-3 in the future, but it is difficult to add new regions.

Next I tried your fork of arduino-lmic. But it fails to join. I can see on the gateway the join requests and join accepts, but it seems the app ttn-otaa-bastwan-us915 does not receive the join accept.
Gateway log:
image
App log:

Packet queued
49579: EV_JOINING
49680: EV_TXSTART
451194: EV_JOIN_TXCOMPLETE: no JoinAccept
453562: EV_TXSTART
833894: EV_JOIN_TXCOMPLETE: no JoinAccept
1134824: EV_TXSTART
1536367: EV_JOIN_TXCOMPLETE: no JoinAccept
1592096: EV_TXSTART
1972379: EV_JOIN_TXCOMPLETE: no JoinAccept
2659950: EV_TXSTART
3061508: EV_JOIN_TXCOMPLETE: no JoinAccept
3067960: EV_TXSTART
3448286: EV_JOIN_TXCOMPLETE: no JoinAccept
3782371: EV_TXSTART
4183891: EV_JOIN_TXCOMPLETE: no JoinAccept
4205018: EV_TXSTART
4585344: EV_JOIN_TXCOMPLETE: no JoinAccept
4739341: EV_TXSTART

Any idea?
I guess I have the pin mapping correct, because I can send.

// Pin mapping for ElectronicCats BastWAN LoRa
const lmic_pinmap lmic_pins = {
  .nss = SS,
  .rxtx = RFM_SWITCH,
  .rst = RFM_RST,
  .dio = {RFM_DIO0, RFM_DIO1, RFM_DIO2},
  .rxtx_rx_active = 0,
  .rssi_cal = 10,              // LBT cal for the Adafruit Feather M0 LoRa, in dB
  .spi_freq = 8000000,
};

"Sender" Example Code Bootlooping

Hey,

When I upload the "sender" example code to the RAK4260 with the ElectronicCats bootloader installed it gets stuck in a bootloop(the receiver code works fine). When I comment out the "LoRa.endPacket()" line it will run through the program but will not send any packets(as expected). So I expect that this is the issue but I can't quite figure out why. Please help. Thanks!

UPDATE 1/29:

So... my power supply ended up being bad which was causing a voltage dip during transmission. New power supply... Now the program runs fine however It's not sending any packets. In the serial monitor I get the first "Sending packet: 0" but then the LED just goes on and off with no more data in the serial monitor and nothing being received by my receiver(which I've confirmed works with another LoRa module.)

SPI Flash alternative to GD25Q16C

Dear all,

There is an alternative chip to the U4 (GD25Q16C) SPI Flash on the BastWAN easily accessible in Europe? I have seen that we can get it from LCSC but I was searching for Farnell/RS/Digikey alternative.

What is this chip intended for? Program store? Is it mandatory?

Thank you very much.

Best regards,
Jaime

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.