Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - braza

Pages: 1 2
1
Wirelings / Re: Audio Amplifier Wireling
« on: February 12, 2022, 06:18:55 AM »
Sooo, should I buy TinyZero to make this shield work?

If you are using TinyDuino, for sure follow the tutorial and choose
  • Board: Arduino Pro or Pro Mini
  • Processor: ATMega328P (3.3V, 8MHz)

The other error about the interrupt library is because the example was made for the TinyZero's SAMD processor, not the TinyDuino AVR. That's not the only problem, the TinyDuino does not have a DAC output, this means each sample would have to be played at the same volume.

In any case, the TinyDuino only has 32KB of flash which won't store much useful audio (average .mp3 size is 1MB per minute of audio).  You could use the audio shield + SD card shield. This is probably the best route since I don't think we have any examples of using the TinyZero + Wireling amplifier + SD card shield anyway.

Although the TinyZero has slightly better specs than the TinyDuino, the example linked earlier only allows for playing a couple seconds of audio since there's no SD card/external storage.

I'm pretty sure you could at least generate sounds with the hardware you have, but you'd have to do some trickery with PWM.
Yay, thanks for the answer! Couple of seconds is fine! Let me try no-DAC waay.

2
Wirelings / Re: Audio Amplifier Wireling
« on: February 08, 2022, 01:48:48 PM »
Sooo, should I buy TinyZero to make this shield work?

3
Wirelings / Re: Audio Amplifier Wireling
« on: February 03, 2022, 04:34:26 AM »
You should not be selecting TinyZero or WirelingZero as the target since those are different boards with different hardware. I recommend refreshing on the programming process for the TinyDuino. Here's the getting started tutorial: https://learn.tinycircuits.com/Processors/TinyDuino_Setup_Tutorial/

I don't believe the hardware from the Kickstarter has changed drastically, but if you are still encountering issues after getting the right Tools selections set up for programming, let me know!
I've been programming for TinyDuino and tried switching platforms to WirelingZero because I was already getting errors there:
Quote
WARNING: library SAMD_TimerInterrupt claims to run on samd architecture(s) and may be incompatible with your current board which runs on avr architecture(s).
In file included from C:\Users\yakov\Documents\Arduino\libraries\SAMD_TimerInterrupt\src/SAMDTimerInterrupt.h:51:0,
                 from C:\Users\yakov\Downloads\AudioAmplifierWireling\AudioAmplifierWireling.ino:2:
C:\Users\yakov\Documents\Arduino\libraries\SAMD_TimerInterrupt\src/SAMDTimerInterrupt.hpp:59:4: error: #error This code is designed to run on SAMD21/SAMD51 platform! Please check your Tools->Board setting.
   #error This code is designed to run on SAMD21/SAMD51 platform! Please check your Tools->Board setting.
    ^~~~~
C:\Users\yakov\Documents\Arduino\libraries\SAMD_TimerInterrupt\src/SAMDTimerInterrupt.hpp:134:4: error: #error Unknown board
   #error Unknown board
    ^~~~~
I also noticed a line in the tutorial "Pin A0 is the only pin connected to a 10-bit digital-to-analog converter (DAC) on the SAMD21 and is only available on Wireling port 0". I'm not that deep into hardware to differentiate whether this belongs to shield or motherboard therefore asked about TinyDuino as a target platform.

4
Wirelings / Re: Audio Amplifier Wireling
« on: February 01, 2022, 05:26:06 PM »
I have a TinyDuino back from Kickcstarter times + Wireling shield. Would it work or do I need TinyZero at least?
I'm asking because I'm getting
Quote
"No device found on COM5
An error occurred while uploading the sketch"
with either TinyZero or WirelingZero as target devices.

5
Wirelings / Re: Audio Amplifier Wireling
« on: February 01, 2022, 11:50:19 AM »
Here's the Audio Amplifier tutorial: https://tinycircuits.com/blogs/learn/audio-amplifier-wireling-tutorial
Thank you so much! Was it there all the time? I investigated the amplifier page and also searched the site.

6
Wirelings / Re: Audio Amplifier Wireling
« on: January 31, 2022, 12:13:34 PM »
Got my Audio Amplifier too, but no examples are available.

Also, do I have to have microSD for the sound files or some audio files can be somehow added to the internal memory?

7
TinyDuino Processors & TinyShields / Re: How do I get 5V?
« on: February 26, 2016, 02:40:03 PM »
Ah- Think of the 5V as an input, it's being supplied by the USB while plugged in. When there's no 5V source attached, you'll see some sort of voltage, but it's not useful as a source, and definitely won't be 5V if the other source is a battery below 5V.

The right spot to power an IR sensor from is VCC(main/processor voltage), but you'll definitely need a sensor that works at your battery voltage.
Thank you, good stranger :)

8
TinyDuino Processors & TinyShields / How do I get 5V?
« on: February 24, 2016, 04:08:19 PM »
Hi! It seems that somewhat similar was asked, but the discussions were too deep for my pure programmer mind. I have no sense of circuits, sorry :(
So I have an SD card that logs data from accelerometer and IR sensor. If powered from USB everything works fine. If powered from accumulator or battery, IR sensor stops working. I've measured voltage between 5V and Gnd - it was like 2.1V.
Is it expected?
What steps should I take next?
Thanks!

10
General Discussion / Re: Ammo counter
« on: October 25, 2014, 05:56:54 PM »
This looks cool! I'll have to show it to some of the guys at work, they are big gun nuts.

What's the IR sensor for again?

Can you solder the sensor to the small proto shield instead of attaching it to the BIG terminal one?
Thanks! Check out the gun as well $) http://forum.saiga-12.com/index.php?/gallery/album/1384-saiga-20k-birds-winter-camo/

IR sensor is to reset the counter. Once the clip is empty, you pull it out and sensor detects that the tooth is gone. Then you attach full clip and sensor notices that clip-tooth is back and resets the number of bullets. It can even be improved to detect different clips by colour code so that you can use different capacity clips. In theory.

I can't soler it to the small proto shield because it has no connectors to attach a 7-segmet display on top of it. So I either have small proto board or a display with numbers...


11
General Discussion / Re: Ammo counter
« on: October 19, 2014, 06:22:19 AM »
To be honest, it is really frustrating that no other proto board except that BIG terminal one has 2-side connector to other modules. It used to fit 30mm tube so well, making it easy tu mount as regular scope...
No I'm either have to drop that IR sensor ot find some crude way to attach it to gun...

12
General Discussion / Re: Ammo counter
« on: October 19, 2014, 06:06:35 AM »
I talked to Ken 2 mins ago, and you can solder on external power cabling to the tinyduino. Their new processor actually has built in lithium battery connectors, so you can do that. What are u using the ir sensor for? I also can't really help with mounting, sadly, as I have no experience with accessories for firearms. Good luck and keep working on it!!
I guess they have that connector on newer revision of processor borad than I have.. But sure I can solder it. Need to order that battery now and wait again.
Meanwhile I'm going to setup accelerometer logging to SD card and collect data from shooting range, analyze how one or series of shots look like from accelerometer's numbers perspective.
IR sensor is to be placed...not sure how to correctly call these parts in English...where clip's tooth fits into the gun body. Check the pics. Idea is to track if clip is removed and replaced to update the couner number to full clip value.

13
General Discussion / Re: Ammo counter
« on: October 18, 2014, 11:58:53 AM »
    Hi,

    I just wanted to throw my ideas into the ring. First off, how big is the mag you're using? I'm thinking we could use the 16 edge LED ring and start with it fully lit. As shots are fired, it turns off LEDs progressively backwards until the last one. If you have a 30-round clip, you could assign an LED to go off after two shots.

    Just my way of thinking. It would be easier to do it this way than with a 7-segment display.

    Hi goforspaatz,

    I've had a conversation with Ken and it occured that 7 segment display is totally fine to work with Accelerometer and IR sensor altogether. Also I've jsut received that 7 segment display and proto terminal blocks unit. I does really work together and I have serial output from all sensors and 2 digit display at once. So In theory I could get up to 99 bullet clip. Not a problem anymore.

    At the moment I have 2 issues:
    Hull and mount for that thing to attach to gun. Since there's no proto board with sandwich connectors on both sides, I have to use terminal blocks which is bigger thus I cant use my 30mm tube with Weaver mount anymore :( 30mm weaver rings for optics are the biggest ones as far as I can see...
    Power supply. This thing does not start and function properly without USB cable... Seems like that CR1632 can't provide enough of energy for all the stuff I have. Not sure what options are there for me.
    [/list]

    And here's the IR sensor and scheme I use for clip removal and color code detection. http://www.bajdi.com/analogread-from-a-tcrt5000-sensor/
    The idea is that this sensor goes to the gun body and points to a certain attached clip point that can be coloured, meaning its capacity.
    Attached my WIP pic

    14
    New Product Ideas / Re: Double Sided Connector for TinyShield Proto Board
    « on: September 05, 2014, 04:20:40 AM »
    You should check out the Proto Terminal Block TinyShield which has a double sided connector, and can be used without the terminal blocks to basically do exactly this, and it's very easy to get access to the signals.

    https://tiny-circuits.com/tiny-shield-proto-terminal-blocks.html

    Ken
    Hi,
    It might be a workatound for now.. The downside is its size obviously. But thanks!

    15
    New Product Ideas / Re: Double Sided Connector for TinyShield Proto Board
    « on: September 03, 2014, 04:42:07 AM »
    Bumping it up. I`m stuck with my project because existing boards have conflicts, so I have to do some manual wiring with protoboard, but can`t have the led or digit display on top of the sandwich! That's really inconsistent design...
    Please fix that.

    Pages: 1 2
    SMF spam blocked by CleanTalk