hybridfree/eevblog-posts huggingface dataset:
74HC165 clock pulse timing - Page 1
Forum section: electronics / general

author: Dan Moos
author_rank: Frequent Contributor
timestamp: February 27, 2017, 06:07:31 am
content: Ok, I'm pretty sure this info is on the datasheet, but I'm not able to interpret it.Using a 74HC165 shift register with a Atmega1284 running (for now anyway) at 8 mHz.My math says that's 125 nano seconds a cycle. Assuming writing a bit to a port is a single cycle move, how do I know if the shift register can keep up without a delay between clock pulses?Bonus question: I believe its the setup and hold times I need to read on the datasheet, but I need help reading this bit I guess.

author: obiwanjacobi
author_rank: Super Contributor
timestamp: February 27, 2017, 06:53:08 am
content: Page 9 Table 7 Max Freq : +/-50 MHz at 5V/25degCYou should write a simple loop that toggles an output pin on the atmega and measure its frequency. I don't think you will get anywhere near 8MHz - more like 800kHz...Try it.

author: bktemp
author_rank: Super Contributor
timestamp: February 27, 2017, 07:06:53 am
content: Quote from: obiwanjacobi on February 27, 2017, 06:53:08 amWhen using hardware SPI an AVR can do F_CPU/2. That is 8MHz when using a 16MHz xtal.In software it is hard to get anywhere above F_CPU/6 even with assembler code optimized for speed.

author: Dan Moos
author_rank: Frequent Contributor
timestamp: February 27, 2017, 07:20:27 am
content: fair enough.But to get back to my main question, do I need to include any delays when pulsing the CP pin on the shift register

author: bktemp
author_rank: Super Contributor
timestamp: February 27, 2017, 07:34:06 am
content: You don't need any delay. Even at 2V supply voltage for the HC165 the worst case setup time (data must be stable before shift clock edge) is only 60ns. The fastest an AVR can do is 1 clock cycle delay, that is 62.5ns delay for 16MHz.But, if you have long wires between AVR and shift register without any proper termination, bad grounding, etc., increasing the setup and hold time and reducing the clock speed by adding some delays, can help to improve the reliability of the circuit, because it allows for the ringing/overshoots caused by a transition on one wire to stop before sending the next transition.

author: tggzzz
author_rank: Super Contributor
timestamp: February 27, 2017, 09:14:57 am
content: The critical points are likely to be:signal integrity: are the voltages within limits at all times, i.e. monotonic transitions, no overshoot/undershoot. Thisindependentof the clock rate since it is determined by the connections between the two circuits and the signaltransitionsthe setup and hold times, as shown in the shift register's datasheet. If the MCU is bitbanging all signals, then you have complete control; if not then you will have to understand the driving circuit's clocking and propagation delaysclock rate: see previous pointcorrect PSU decoupling
NXP LPC Virtual Com port library - Page 1
Forum section: electronics / general

author: MattHollands
author_rank: Frequent Contributor
timestamp: February 26, 2017, 01:04:10 am
content: Hi!I have designed a board that uses the NXP LPC11U24 chip. I want to use the USB port to create a virtual com port so that I can communicate with my PC but I am really struggling with limited documentation.I have been using LPCXpresso from NXP who provide the LPCOpen libraries for the 11U14 chip which includes the nxp_lpcxpresso_11u14_usbd_lib_cdc example. I can successfully build their example and run to create a vcom port, however when I try to use their code in my own project I cannot get it to work! The device just does not show up on my PC and I can't figure out what is going on. The NXP forums have not been particularly helpful.I COULD just base my project on their example by just adding the extra code to do everything else - but their example is in C and I really need to be using C++ for this application so I really have to recreate the project. Frankly, the whole USB stack is very complex and I don't really have time to learn everything that is going on right now (coming up to the end of my degree...) - I am basically hoping to find a library/driver etc that will do the heavy lifting for me.So, does anyone know how I could get this working in LPCXpresso, or if not can anyone recommend a solution that will make virtual com ports much easier. Something like MBED would be good - however even MBED uses the interface chip to do USB communications and I obviously don't have that in my project.Thanks!

author: nctnico
author_rank: Super Contributor
timestamp: February 26, 2017, 09:25:49 pm
content: Keil has a better library.
Help getting STM32 Half duplex to work - Page 1
Forum section: electronics / general

author: Shreeyak
author_rank: Newbie
timestamp: February 25, 2017, 08:19:17 pm
content: Hi,I'm using a STM32f302r8 nucleo and am trying to get the half-duplex UART working with DMA and interrupts to talk to dynamixel motors. Can anyone help me out please?Right Now, I've just got the following working:Code:while(1){uint8_t pData="hi!";HAL_HalfDuplex_EnableTransmitter(&huart1);HAL_UART_Transmit(&huart1, pData, 3, 500);HAL_Delay(500);}But when I use DMA with Interrupts (HAL_UART_TxCpltCallback), things aren't working. I'm not sure what all information I should put in here.

author: newbrain
author_rank: Super Contributor
timestamp: February 25, 2017, 09:54:40 pm
content: I was writing a list of questions, with small reprimand for not providing enough information, but I see you edited your post.One question stands, though: did you use CubeMX to set up the DMA too?If not, show us the init code, there might be something missing.See also a recentsimilar thread, with SPI rather than UART.

author: branjb
author_rank: Contributor
timestamp: February 26, 2017, 01:07:09 am
content: Did you enable the callback interrupt? Not sure if the HAL sets it up for you or not. I recently ran into an issue where the HAL didn't enable the callback IRQ for a timer in OC mode. Had to manually invokeCode:HAL_NVIC_SetPriority(TIM1_CC_IRQn, 0, 0);HAL_NVIC_EnableIRQ(TIM1_CC_IRQn);because the HAL code didn't include it.

author: newbrain
author_rank: Super Contributor
timestamp: February 26, 2017, 11:55:10 am
content: Quote from: branjb on February 26, 2017, 01:07:09 amThe HAL, being just an API, will not do much by itself (in this case, in others it might do an awful lot too much...), it only provides the building blocks.But the OP mentioned CubeMX, and the code generator will insert the appropriate code to enable interrupts and link the DMA to the UART, if correctly configured, e.g.:Code:// In main.c//...in main function.../* Initialize all configured peripherals */MX_GPIO_Init();MX_DMA_Init();MX_USART1_UART_Init();//...static void MX_DMA_Init(void){/* DMA controller clock enable */__HAL_RCC_DMA2_CLK_ENABLE();/* DMA interrupt init *//* DMA2_Stream7_IRQn interrupt configuration */HAL_NVIC_SetPriority(DMA2_Stream7_IRQn, 0, 0);HAL_NVIC_EnableIRQ(DMA2_Stream7_IRQn);}// In strm32f4xx_it.c (I don't have a STMF3, not bothering to DL the right Cube)void DMA2_Stream7_IRQHandler(void){/* USER CODE BEGIN DMA2_Stream7_IRQn 0 *//* USER CODE END DMA2_Stream7_IRQn 0 */HAL_DMA_IRQHandler(&hdma_usart1_tx);/* USER CODE BEGIN DMA2_Stream7_IRQn 1 *//* USER CODE END DMA2_Stream7_IRQn 1 */}// etc. etc.The DMA interrupt used, not the UART one: the HAL will translate it to the UART's callbacks.
Did I break my stm32f103?  - Page 1
Forum section: electronics / general

author: mrburnzie
author_rank: Regular Contributor
timestamp: February 24, 2017, 09:33:33 pm
content: Hello!I'm new to the stm32 world and I've chosen the stm32f103 blue pill... at first everything was working I was using uart programming setting the BOOT0 to 1 and BOOT1 to 0 and using stm32flash (on linux) to flash the code and everything worked...But suddenly the writing was really, really slow and going up to 56% and stopping... I think it's because I've somehow erased the bootloader? I admit I was changing the jumpers a bit...Any suggestions on fixing?Thanks!

author: mrburnzie
author_rank: Regular Contributor
timestamp: February 24, 2017, 09:56:21 pm
content: The problem was that I wasn't flashing .bin I was flashing .elf files... my apologies

author: AndyC_772
author_rank: Super Contributor
timestamp: February 25, 2017, 09:34:24 am
content: For what it's worth, I don't think it's physically possible to erase the bootloader. The worst you can do is set the top level of read protection in the option bytes, which is an irreversible operation that disables the debug interface completely. Do that and the chip is scrap.
Paspberry Pi Zero powered by 3.3V - Page 1
Forum section: electronics / general

author: Boomerang
author_rank: Regular Contributor
timestamp: March 06, 2017, 10:09:27 am
content: What do you think will happen if I try to power Zero with 3.3V only? Of coarse the USBs wont work - I don't need them anyway. What I need to be working is the MCU (with all GPIOs, UART, SPI and etc.), the RAM and the SD card.I'm asking here because (1) there is no schematic published and (2) I still didn't order the board. I will order few boards and try to make my project with Rasp Pi Zero if there are some chances of success...Thanks in advance!

author: raspberrypi
author_rank: Frequent Contributor
timestamp: March 06, 2017, 12:03:40 pm
content: Quote from: Boomerang on March 06, 2017, 10:09:27 amI always get the lightning bolt symbol on the screen. Some times it seems glitchy, but that could just be norml.

author: Boomerang
author_rank: Regular Contributor
timestamp: March 06, 2017, 12:15:19 pm
content: How you power it - instead of the normal 5V or you just power the 3.3V internal bus from the 40-pin header?
scanning laser microscope - Page 1
Forum section: electronics / general

author: stoppi
author_rank: Newbie
timestamp: February 21, 2017, 07:37:33 pm
content: Hello!I'd like to present you my latest project, a homemade scanning laser microscope.Maybe you'd like to Support me in the microcontroller-contest of instructables:https://www.instructables.com/id/Scanning-Laser-Microscope-With-Arduino/The Resolution is high enough to see the pit-structure of an old CD...Here's the link to my Video:

author: cncjerry
author_rank: Unknown
timestamp: February 21, 2017, 07:43:09 pm
content: Interesting. I would can the music and do a voice over narration to better understand what is going on.I am going to take a CD or DVD downstairs and check it out with my microscope to see how practical this is.Interesting.

author: legacy
author_rank: Super Contributor
timestamp: February 21, 2017, 10:26:25 pm
content: is the source available ?

author: stoppi
author_rank: Newbie
timestamp: February 22, 2017, 08:13:16 am
content: Please use the instructables-link, i cannot upload the files here

author: legacy
author_rank: Super Contributor
timestamp: February 22, 2017, 11:00:00 am
content: Quote from: stoppi on February 22, 2017, 08:13:16 amIf I click on downloadQuote

author: MrBungle
author_rank: Unknown
timestamp: February 22, 2017, 11:02:53 am
content: Anything 'laser' grabs my attention.Nice work!
ATmega328P C Code - Page 1
Forum section: electronics / general

author: strawberry
author_rank: Super Contributor
timestamp: February 21, 2017, 05:35:29 pm
content: Atmel studio7 => Arduino uno.How this code is functioning and why it doen't? Why timer do not read ADC register?Code://Atmega328P#define F_CPU 1000000UL#include <avr/io.h>#include <avr/interrupt.h>#include <util/delay.h>void adc_setup (void){ADMUX |= (1<<MUX0) | (1<<REFS0) | (1<<REFS1); // Set the ADC input, internal REFADMUX |= (1<<ADLAR); //shift ADC to 8bitADCSRA|= (1<<ADPS2) | (1<<ADPS1) | (1<<ADPS0) | (1<<ADEN);// Prescaler to clock/128 & enable ADC}int adc_read (void){ADCSRA |= (1 << ADSC); // Start the conversion_delay_ms(10); // Wait for it to finishreturn ADCH;}void pwm_setup (void){TCCR0A |= (1<<CS01); // Set Timer 0 prescaler to clock/8.TCCR0A |= (1<<WGM01) | (1<<WGM00); // Set to 'Fast PWM' modeTCCR0A |= (1<<COM0A1); // Clear OC0A output on compare match, upwards counting.}void pwm_write (int val){OCR0A = val;}int main (void){int adc_in;DDRD |= (0b11111111); // LED is an output.adc_setup();pwm_setup();while (1) {adc_in = adc_read(); // Get the ADC valuepwm_write(adc_in); // Now write it to the PWM counter}}

author: Lajon
author_rank: Contributor
timestamp: February 21, 2017, 09:02:57 pm
content: Code:TCCR0A |= (1<<CS01); // Set Timer 0 prescaler to clock/8.TCCR0B would be better, that is where the clock select bits are./Lars

author: HwAoRrDk
author_rank: Super Contributor
timestamp: February 22, 2017, 05:34:19 am
content: A couple of other comments about the code:First, if you are running this on an actual Arduino Uno board, why are you declaring the CPU clock frequency as 1MHz? Unless you have changed the crystal, it should be 16MHz.Code:#define F_CPU 16000000ULSecond, you should not use a delay for a fixed period of time to wait for the ADC to finish. (And especially when you are incorrectly specifyingF_CPU-_delay_ms()will be highly inaccurate then.) The ATmega328P datasheet says this about what happens when the conversion is finished:QuoteSo you should instead wait until the ADSC bit is zero, like so:Code:loop_until_bit_is_clear(ADCSRA, ADSC);
Motorola M68HC11EVS Evaluation System, looking for documentation  - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: February 21, 2017, 12:42:42 am
content: Does anyone happen to have documentation for the old (1989-1992) EVS kit?Especially with the M68HC11K4 Emulator BoardK4 is special because it's an enhanced version, so the Emulator Board looks interesting.Unfortunately I can't find the UM an AN. Google is not working for me
Music player - Page 1
Forum section: electronics / general

author: plutoni5
author_rank: Newbie
timestamp: December 13, 2016, 10:41:57 am
content: Hi guys. Im not a programmer or an electronics guy, but im pretty handy with computers and such. I wonder. What would be best way to make a simple music player which would play everytime I enter the room. what I mean is, I would really like to make smooth jazz play when I open my front house door and turn on the light in the corridor.Is it raspberry PI, arduino? Or maybe I can make my old android phone make to do that?

author: PeterG
author_rank: Frequent Contributor
timestamp: December 13, 2016, 10:53:33 am
content: This comes under "Home Automation". If you google it you will find plenty of projects regarding this type of thing.Best of luck with it.Let us know how you go with it.

author: darko31
author_rank: Regular Contributor
timestamp: December 13, 2016, 10:56:41 am
content: Raspberry pi would do the job pretty well because it is rather flexible. You can copy a lot of music to sd card, and use GPIO for detecting when the door is open.You could use some python library for mp3 files, here are some adviceshttp://stackoverflow.com/questions/20021457/playing-mp3-song-on-python

author: PeterG
author_rank: Frequent Contributor
timestamp: December 13, 2016, 11:01:12 am
content: Raspberry pi is the best option for you. Also provides a lot of expansion options like access control.

author: Lord of nothing
author_rank: Super Contributor
timestamp: December 13, 2016, 05:00:39 pm
content: What is the smallest possible way maybe ethernet powered?Ethernet Chip + CPU + Sound Decoder Audiowahtever Chip?

author: plutoni5
author_rank: Newbie
timestamp: February 20, 2017, 11:31:37 am
content: Hi guys, thank you for the answers. Doing something in python and raspberry pi's was too complicated for me. So, I bought an old android phone for 10bucks, hooked the charger, set-up Tasker app to start playing music when it detects light and vuala. Thanks for the answers, and sorry for kind of a late replyCheers
Programmer TL866A - Page 1
Forum section: electronics / general

author: herr der ringe
author_rank: Newbie
timestamp: February 17, 2017, 09:24:24 pm
content: Knows someone script commands to start a TL866 programmer in batch.Device select; And start * .project file

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: February 18, 2017, 05:06:47 pm
content: https://github.com/vdudouyt/minipro
Arduino High Voltage Serial Programmer - Page 1
Forum section: electronics / general

author: Nogtail
author_rank: Regular Contributor
timestamp: February 18, 2017, 04:46:49 am
content: I have an ATtiny13 that I have been programming with a USBasp and an Arduino running ArduinoISP. I require more IO and would like to disable the reset pin to use as IO, but doing this would require a high voltage programmer.I have seen many Arduino based high voltage fuse resetters, but that would require a two step process to program the device. Does anyone know of any Arduino/USBasp based AVR high voltage serial programmer software/hardware/tutorial?

author: MickM
author_rank: Regular Contributor
timestamp: February 18, 2017, 06:05:56 am
content: Hi;I have never seen one, although Atmel probably make one.I use this:http://www.instructables.com/id/AVR-Attiny-fusebit-doctor-HVSP/?ALLSTEPSI have it's big brother for the Mega series.http://mdiy.pl/atmega-fusebit-doctor-hvpp/#engYou need +13.5V DC to run it.Mick M.
How to connect FTDI breakout to Attiny84? - Page 1
Forum section: electronics / general

author: trojanhorse
author_rank: Newbie
timestamp: January 30, 2017, 01:50:00 pm
content: Hi,How do I connect a sparkfun FTDI breakout board to an Attiny84?https://www.sparkfun.com/products/9716Also first time posting.

author: Buriedcode
author_rank: Super Contributor
timestamp: January 30, 2017, 02:29:23 pm
content: Well, depends on what you want to do. If you want to flash/program the Attiny, and you have an Arduino then this may be of some use:http://madebymarket.com/blog/dev/programming-attiny84-from-pro-mini-with-ftdi.htmlIf you have already programmed the Attiny and have got a software UART running, then just hook up the Tx/Rx lines to the pins you've made Rx and Tx.This page also describes giving the Attiny84 serial capability:https://www.hackster.io/porrey/easy-serial-on-the-attiny-2676e6The Attiny84 does not have a UART, but it does have a Universal serial interface - which can be used to create a software UART.I suspect you want to program the device, in which case you will need a programmer.. be it a USBasp, an Arduino (that can be programmed to be an ISP programmer).Do you have a blank Attiny84, or one with a built-in bootloader?

author: trojanhorse
author_rank: Newbie
timestamp: February 18, 2017, 02:36:38 am
content: So sorry its took a while to respond, I've been busy.I'll try it.Thank you
DEC-to-BCD and BCD-to-DEC conversions - Page 1
Forum section: electronics / general

author: TJ232
author_rank: Frequent Contributor
timestamp: February 16, 2017, 03:02:29 pm
content: Hi Everybody,In the process of working on a new Driver Tutorial for the ESPBasic Series I am looking today to implement some Decimal-to-BCD and BCD-to-Decimal subroutines.What I have done so far:1. BCD-to-Decimal subroutine:Code:hv = val >> 4hl = val and 15val = hv*10 + hlwait2. Decimal-to-BCD subroutine:Code:d = int( val / 10 )d1 = d * 10d2 = val - d1val = d*16 + d2waitIf you have any other idea please feel free to share it, looking forward to see smarter solutions that that. I'm sure they are!Happy breadboarding,TJ.Original Article with Test Program Code:ESPBasic Series - DEC to BCD and BCD to DEC conversions

author: Benta
author_rank: Super Contributor
timestamp: February 16, 2017, 04:47:52 pm
content: It should work, but it's limited to working on only one byte of data.For arbitrary lengths of digits, setting up a loop using DIV and MOD is somewhat more elegant.Example for an 8-digit display:Output is stored in an 8-byte buffer, input is either decimal or binary (use 16 for division instead).Input value: 12345678. digit_1 is LSDdigit_1 = input MOD(10) ;(=8)input = input DIV(10) ;(=1234567)digit_2 = input MOD(10) ;(=7)input = input DIV(10) ;(=12345)and so on. This can be done in a loop with the loop counter used as pointer to the output array. The method can be used for any change of base.For a single-byte conversion, yours is probably much faster.

author: westfw
author_rank: Super Contributor
timestamp: February 16, 2017, 08:37:22 pm
content: There are standard-ish algorithms, mostly encountered in ascii/number conversion:Code:bcdtobin(bcdarray) {result = 0;while (moredigits(bcdarray)) {result = (result * 10) + nextdigit(bcdarray);}return result;}bintobcd(number) {reversedbcdarray[] = {0};while (number > 0) {nextdigit(reversedbcdarray) = number % 10; // extract the Least significant digitnumber = number / 10;}return reverse(reversedbcdarray);}
(HELP PLZ!)What is this signal (video from O'scope)? - Page 1
Forum section: electronics / general

author: jstpie5
author_rank: Newbie
timestamp: February 22, 2017, 04:14:42 pm
content: As the subject implies I need help identifying the waveform on the video link below (and possibly recreating it later).The signal is the feed to a John Deere hydraulic solenoid. The signal and return wires were connected to a load resistor with the same value as the solenoid for testing purposes (5.5 ohms).I was expecting it to be PWM and it looks more like a rectified sine wave that increases in voltage and decreases in frequency as the joystick is pulled further back (more power).I am trying to take control of the hydraulic solenoid with an Arduino and MOSFET (or similiar) and I would like to use a similar signal as what John Deere uses. PWM works ok to control the solenoid but I am now curious what John Deere is doing and why.Any help is appreciated!Video starts with solenoid getting full power. Then the power is varied by moving the joystick back and forth.Low power signal frequency is ~22kHzLow power voltage is from 0 to ~10VHigh power signal frequency is ~20kHz.High power voltage is from ~2.5-10V-James

author: Simon
author_rank: Unknown
timestamp: February 22, 2017, 06:01:07 pm
content: Topic locked. Please do not double post the same topic, it causes confusion and annoys other members.
I forgot to hook up the ground in this circuit and it works!? Magic? - Page 1
Forum section: electronics / general

author: raspberrypi
author_rank: Frequent Contributor
timestamp: February 11, 2017, 12:45:13 am
content: This makes no sense.I forgot to hook up the ground and the LEDS are working. How ? ItsQuoteIts Pins: TX RX 0 1 2 3 4Is one of them working as ground?(forgot the pic. one sec...)))

author: raspberrypi
author_rank: Frequent Contributor
timestamp: February 11, 2017, 12:57:03 am
content: The pins must be ground when they are not on? Wouldn't this be bad?

author: bitseeker
author_rank: Super Contributor
timestamp: February 11, 2017, 01:28:55 am
content: Ground is not required to light an LED. If you have sufficient voltage difference between the leads, the LED will light with a brightness that's directly proportional to the current flowing through it.

author: raspberrypi
author_rank: Frequent Contributor
timestamp: February 11, 2017, 08:16:36 pm
content: Quote from: bitseeker on February 11, 2017, 01:28:55 amSo why does this work? I thought the arduino pins were +5 or 0 (not ground just 0).

author: T3sl4co1l
author_rank: Super Contributor
timestamp: February 11, 2017, 08:23:40 pm
content: If a node measures 0V with respect to ground, then how is it not ground?Tim

author: raspberrypi
author_rank: Frequent Contributor
timestamp: February 11, 2017, 10:45:05 pm
content: Quote from: T3sl4co1l on February 11, 2017, 08:23:40 pmThink of the pin as not being connected to anything, it's floating. 0v but not ground. Open circuit.

author: Bud
author_rank: Super Contributor
timestamp: February 11, 2017, 11:17:48 pm
content: Dave made a video on this, search EEVBlog videos.

author: T3sl4co1l
author_rank: Super Contributor
timestamp: February 12, 2017, 01:39:15 am
content: Quote from: raspberrypi on February 11, 2017, 10:45:05 pmIf it's not connected to anything, then it's undefined.Tim

author: amyk
author_rank: Super Contributor
timestamp: February 12, 2017, 03:26:11 am
content: Quote from: Bud on February 11, 2017, 11:17:48 pmThis one?https://www.eevblog.com/forum/blog/eevblog-831-power-a-micro-with-no-power-pin!/

author: Bud
author_rank: Super Contributor
timestamp: February 12, 2017, 03:59:48 am
content: Yes,your link did not work for some reason, here is a link to the video on youtube

author: raspberrypi
author_rank: Frequent Contributor
timestamp: February 12, 2017, 09:55:49 am
content: Quote from: Bud on February 12, 2017, 03:59:48 amThis forum is a gold mine of information.

author: Luminax
author_rank: Regular Contributor
timestamp: February 20, 2017, 09:02:03 am
content: This happened to me when my test frequency counter PIC circuit displays 'something' without being powered up... turned out I forgot to disconnect the 'Input signal' and it was driving the whole circuitwelp, Electronics, full of 'gotchas'!

author: Nerull
author_rank: Frequent Contributor
timestamp: February 21, 2017, 07:03:16 am
content: You can't set a pin 0v by floating it - you'll get unreliable readings. Try to measure a voltage with one probe and see how accurate it is - you set a pin to 0v by pulling it down to ground.
Orange Pi Zero - Page 1
Forum section: electronics / general

author: CharlesSpong
author_rank: Contributor
timestamp: February 14, 2017, 03:06:03 pm
content: I am struggling to get the orange pi zero to work, i have tried two images so far debian jessie and ubuntu xenial both from the armbian website. Currently i am using jessie and all i can get is a blinking light on the left hand side of the ethernet port.--Update--Needed to use more stable power supply

author: bingo600
author_rank: Super Contributor
timestamp: February 15, 2017, 06:33:37 pm
content: Have 2 on the way.Sems like armbian would work ok.They say you need a "stiff" 5V/2A PSU , and that WiFi is never going to work on the Zero (unstable & low throughput)They also say @armbian, that the Orange's original OS'es overheat the CPU , due to crazy CPU poweregister settings./Bingo

author: martinayotte
author_rank: Regular Contributor
timestamp: February 15, 2017, 10:57:20 pm
content: Yes, Armbian is working fine on OPiZero, it can even boot from USB drive or dongle after flashing U-Boot into the SPI-NOR.

author: HSPalm
author_rank: Regular Contributor
timestamp: February 16, 2017, 09:06:19 am
content: The Orange Pi Zero tricked me (or I tricked it), when I used both CR and LF when interfacing it during initial setup with the debug UART port. Linux doesn't like CR, or doesn't interpret it as I hoped.
Atmel ICE/JTAG capabilities - Page 1
Forum section: electronics / general

author: gogoman
author_rank: Regular Contributor
timestamp: February 04, 2017, 11:33:47 pm
content: Hi, newb to this ARM stuff. It would be neat for data to appear in a terminal window.Does the Atmel ICE Jtag support "printf" ?The IDE is Studio 7, The device family is the SamX7xxxx.thanks guys

author: ajb
author_rank: Super Contributor
timestamp: February 13, 2017, 05:50:54 pm
content: Not sure about JTAG, but with SWD you should be able to do debug prints via SWO in Percepio Trace.
Powered Microchip Explorer 16 + Pickit 2 = fried USB Port?!! - Page 1
Forum section: electronics / general

author: jon6123
author_rank: Contributor
timestamp: February 11, 2017, 10:45:15 pm
content: Hi All,I've been working with the Microchip Explorer 16 Dev board and a PIC24F today, programming it with my trusty Pickit2...Loaded the LCD demo and FreeRTOS demo and had them both running no problems, however came to make my own clean new project and was bamboozled by this MPLAB X code config tool (always used MickroC + hex loader for simple PICs in the past) as i was unable to press the "make and program" buttons (greyed out)So I decided to go back to LCD demo and check the "code config tool" setup there for the ICD pins, loaded it up took a screenshot then verified i could "make and program" by clicking the button, next thing i hear is the windows USB disconnect soundLow and behold my usb port is blown, this is the second usb port that has gone down since ive been using this pickit 2!! the previous one i put down to the age of the laptop however now im 100% sure it was caused by the pickit 2!USB mouse and USB keyboard both dont work in it now(but still receive power and make USB connect sound)I had the Exporer 16 powered up externally, was I foolish to leave that plugged in while uploading code?! :SI worked in embedded software at Renesas for a year and timelessly uploaded code to a powered up dev board..I want to know what peoples thoughts are on the general practice for this? if you're using pickit 2 + explorer 16 please BE CARFUL!!!Only got one USB port left on this laptop nowany advice on possible repairs? i assume itll be chips mounted to the motherboard, too small to work on

author: picandmix
author_rank: Frequent Contributor
timestamp: February 12, 2017, 09:56:01 am
content: Sounds a strange one ..Have you looked at the various USB settings, seems Windows can turn off a USB port if conditions are met.Also wonder if there is a potential problem with the laptop and explorer board being mains powered ?https://support.microsoft.com/en-gb/help/817900/usb-port-may-stop-working-after-you-remove-or-insert-a-usb-device

author: jon6123
author_rank: Contributor
timestamp: February 12, 2017, 05:47:49 pm
content: Hey thanks for that link!I just tried "method three" on that microsoft support website and the two USB ports are back up and running nowI was surprised that a reboot didn't cure it and assumed that was the end of them, the first USB port has been down for a couple months.. this solved the issue completelyThanks again!
SVN to Bitbucket migration? - Page 1
Forum section: electronics / general

author: Pack34
author_rank: Frequent Contributor
timestamp: February 10, 2017, 06:10:35 pm
content: I have an internal SVN server at work that I was looking at migrating to Bitbucket (git). I initially setup new repositories and dumped the existing code in there, but was wondering if there was an easy way to transfer the revision history as well.Has anyone done this before?

author: elecman14
author_rank: Unknown
timestamp: February 10, 2017, 06:30:16 pm
content: You should look into git-svn. It should do what you are after.

author: cezar
author_rank: Contributor
timestamp: February 10, 2017, 06:33:46 pm
content: yes, you can do it and there is plenty of tutorials. here is one of those:https://git-scm.com/book/en/v2/Git-and-Other-Systems-Migrating-to-GitThere are also scripts that can do it auto-magically

author: neslekkim
author_rank: Super Contributor
timestamp: February 10, 2017, 07:49:11 pm
content: I followed this guide, worked flawlessly:https://www.atlassian.com/git/tutorials/migrating-overview
STM32F4 GPIO Speed Vs External Debounce circuit. - Page 1
Forum section: electronics / general

author: diyaudio
author_rank: Frequent Contributor
timestamp: February 09, 2017, 06:53:35 am
content: It occurred to me that whilst building a typical 4 button push button circuit with rotary encoder, that the inputs to STM32F4 MCU has GPIO speed settings of which 2_Mhz is the lowest reaction time for the PORT to latch, does this mean typical external RC Debouncing maybe be ommited ?

author: kony
author_rank: Regular Contributor
timestamp: February 09, 2017, 06:56:02 am
content: Why not just timer polling of the inputs and some majority voting logic for the buttons?You are very likely running system tick timer with period in the order of 1-10ms anyways.

author: JPortici
author_rank: Super Contributor
timestamp: February 09, 2017, 06:59:09 am
content: the gpio speed affects the slew rate of the output driver.or does it have an effect on the input too? what does the manual say?

author: mikerj
author_rank: Super Contributor
timestamp: February 09, 2017, 09:44:33 am
content: Quote from: JPortici on February 09, 2017, 06:59:09 amAFAIK it only affects the output driver slew rate, nothing to do with the inputs.
ISO7816 interface(USART0) in LPC11xx series from NXP - Page 1
Forum section: electronics / general

author: dizgah
author_rank: Regular Contributor
timestamp: February 07, 2017, 01:18:54 pm
content: Hi ,Is there any one here worked with ISO7816 peripheral in NXP LPC11xx MCU?I'm mixed up about how I must generate clock pulse for ISO7816 to the smartcard?User manual say ,USART_CLock is not adequate for generating clock pulse to smartcard and this must be done with SCtimer/PWM,while:1-SCtimer/PWM is unable to generate 3.58MHZ clock frquency(around 1MHZ is best clock frequency I could generate) and also I have no idea how I must synchronize RX/TX data with this clock pulses.2-in NXP reference example(AN11121),usart_clock is used for generating clock pulse (Then Why it recommended using SCTImer while refference example used USART_CLOCK).As I know in USART0 peripheral,SYNCCTRL register is responsible for generating Synchronous USART0_CLK,while user manual say Synchronous mode should not be used with smart card mode.Then how usart_clock will be generated?Finally example does not working and I see no action in the MCU pins ?Thank you all.
Which way should I go?  - Page 1
Forum section: electronics / general

author: Tom Piner
author_rank: Newbie
timestamp: February 03, 2017, 06:08:58 pm
content: I am new to creating electronics. A small but important part of a major project I am doing requires some purpose built electronics. I need to be pointed in the right direction to research.My question is:Using 12v DC power, what would be the best or/and cheapest way to reliably control two solenoids (individually and in tandem) and 16 to 20 LEDs when the solenoids are activated?Thanks.

author: tggzzz
author_rank: Super Contributor
timestamp: February 03, 2017, 07:11:15 pm
content: Have a separate switch for each solenoid and each LED, and manually set them as circumstances dictate.Providing a correct answer to a question is easy. It is much more difficult to determine the right question.

author: jnz
author_rank: Frequent Contributor
timestamp: February 03, 2017, 07:44:17 pm
content: Quote from: Tom Piner on February 03, 2017, 06:08:58 pmBeware the rabbit hole. You really need to be more specific.You're posting in the microcontroller forum, so I'm going to assume you think you need a micro. Maybe you should take a moment and go research Arduino, look at some code examples and see if you follow, if not, turn around, plan on hiring this out, and more appropriately seeing if you really need a microcontroller.

author: james_s
author_rank: Super Contributor
timestamp: February 03, 2017, 08:31:50 pm
content: I like to use shift registers like the 74HC595 and transistors or integrated driver ICs for this sort of thing. Can't give you much more advice without more info though.

author: Tom Piner
author_rank: Newbie
timestamp: February 03, 2017, 10:32:32 pm
content: Thanks for the responses, I now have a direction to research, there are so many Arduino boards out there.

author: obiwanjacobi
author_rank: Super Contributor
timestamp: February 06, 2017, 07:14:34 am
content: Start simple, with an Arduino Uno. Very cheap on ebay.I think you could use relais-boards/circuits (look them up) for solenoids. The point is that you use a switching transistor (the MCU cannot switch it directly) and deal with the reverse pulse (diode) when shutting it off.
basic11, HC11 basic, looking for sources - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: January 22, 2017, 08:38:24 pm
content: I am designing a new board. I'd like to put a BASIC interpreter into the ROM.I can't find sources

author: legacy
author_rank: Super Contributor
timestamp: January 22, 2017, 08:43:31 pm
content: Currently I have burned my ROM with Buffalo.Buffalo is monitor allows program code being developed, to be loaded into RAM and tested.The results can be checked, the code modified and another test done,and it also makes the whole process quite simple and relatively quick

author: ale500
author_rank: Frequent Contributor
timestamp: January 24, 2017, 05:42:46 pm
content: I remember Buffalo Bit User Fast Friendly Aid to Logical Operation, or something like that. I used it a lot on my own HC11 development board, some 20 years ago. Great uC this HC11, and with the monitor was easy to develop. I didn't use it at work though, it may have helped.I remember Motorola's ftp site in those days, they had a lot of useful software. I have the vague idea that a BASIC interpreter for the HC11 was available there. The site is long gone, I wonder if the archive.org has a copy of it. I may have a copy, the only problem is where....

author: ale500
author_rank: Frequent Contributor
timestamp: January 24, 2017, 05:59:27 pm
content: The wayback machine at the internet archive does have a partial copy of Motorola's site (1998), that brought me after some fiddling to the name of the file you are looking for: basic11.zip, it is not in the archive but there exists a basic11.arc, a partial (only the io part is in source form) zip is here:http://www.filewatcher.com/m/BASIC11.ZIP.23373-0.htmlThe stored ftp site can be found here:http://web.archive.org/web/19990209062218/http://www.mcu.motsps.com/freeweb/pub/mcu11/some links are sadly broken.Here can you get some sources:http://www.pudn.com/downloads65/sourcecode/embed/detail234618.htmlYou have to display the files and copy-paste them...

author: Flenser
author_rank: Regular Contributor
timestamp: January 25, 2017, 01:04:42 pm
content: Thanks to ale500 we have a specific filename that we can google and a search comes up with this page that lists two linkshttp://www.filewatcher.com/m/BASIC11.ZIP.23373-0.htmlOne of which is on the old Circuit Cellar ftp site:ftp://ftp.circuitcellar.com/pub/Circuit_Cellar/1990/CC_Issue_018/BASIC11.ZIP

author: HwAoRrDk
author_rank: Super Contributor
timestamp: January 25, 2017, 06:29:45 pm
content: If you download that ARC file from the archive of Motorola's site, you can extract the contents with thearcprogram from GNU Win32 utilities.

author: legacy
author_rank: Super Contributor
timestamp: January 26, 2017, 08:07:37 am
content: thanks guys

author: legacy
author_rank: Super Contributor
timestamp: February 06, 2017, 04:05:58 pm
content: found somethingherefor HC11, andthispost was also useful
CPLD XC95108 5Volt tolerant attached to CMOS Static RAM: good signal integrity? - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: February 05, 2017, 02:30:22 pm
content: hiI am tempted to attach aCMOS Static RAMto a CPLD, sayXC951085V tolerant.I wonder about how good the signal integrity will go due to the strictly TTL outputs of the Static RAM.Any experience ?

author: legacy
author_rank: Super Contributor
timestamp: February 05, 2017, 02:33:06 pm
content: I wonder about VIH, if it will be good enough

author: legacy
author_rank: Super Contributor
timestamp: February 05, 2017, 02:47:50 pm
content: if you look at the IDT website for an example of Static RAM, there are IBIS models for simulation which are essentially voltage vs current curves data for I/O pads.

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: February 05, 2017, 10:19:36 pm
content: XC95108A:VOHfor 3.3V outputs >= 2.4V IOH= –4.0mAVOLfor 3.3V outputs <= 0.4V IOL= 8.0mATTL (74LS04):VOH>= 2.4V IOH= -0.4mAVOL<= 0.4V IOL= 16mA

author: nctnico
author_rank: Super Contributor
timestamp: February 05, 2017, 10:24:25 pm
content: Quote from: legacy on February 05, 2017, 02:33:06 pmThe SRAM datasheet says Vih=2.2V so when driven with 3.3V logic it will be OK unless the board layout and decoupling are extremely screwed but in that case the board is likely not to work with 5V levels either. However when replacing memory in an existing system you might want to look at glitches on the write strobe. Some memories start a write cycle with a very narrow pulse while others do nothing. The first can cause mysterious memory corruption problems. The way to find it is to measure the normal write cycle length and then set a trigger for shorter write cycles with the device running for a couple of hours doing it's normal functions.

author: legacy
author_rank: Super Contributor
timestamp: February 06, 2017, 01:36:20 am
content: Quote from: nctnico on February 05, 2017, 10:24:25 pmExactly what was happening. Thanks for the trick

author: legacy
author_rank: Super Contributor
timestamp: February 06, 2017, 01:37:58 am
content: I was looking in the wrong direction. Thanks guy
DIY scale with 5 mg resolution using HX711 and Arduino - Page 1
Forum section: electronics / general

author: stoppi
author_rank: Newbie
timestamp: November 19, 2016, 07:05:50 pm
content: Hello!One of my latest small Projects, a homemade scale using arduino and the HX711. The load cell is a 100g-type and the realistic resolution is about 5 mg because of the noise. I hope you like itMy YouTube-channel:https://www.youtube.com/user/stopperl16/videos

author: Houseman
author_rank: Regular Contributor
timestamp: February 05, 2017, 11:01:00 pm
content: Hey, nice video.How did you obtain such a good results?I am trying to make the same but I have crazy results, Numbers tend to jump around even with doing the tare due to the noise and the values are not stable.Can you please share the code shown in the video? Best regards and thanks.Steve
How to connect a "Bus Pirate", as a UART, to an Arduino Pro Mini, to program it. - Page 1
Forum section: electronics / general

author: switchedmodepsu
author_rank: Regular Contributor
timestamp: February 04, 2017, 06:44:46 pm
content: If you were unaware that you needed a USB to serial board to connect to the Arduino Pro Mini, as I was, and didn't fancy another 2 day to 3 WEEK wait for the slow boat from China to deliver one, but you DO have a "Bus Pirate" laying around, fear not - you may use your new Arduino IMMEDIATELY by configuring the "Bus Pirate" as a transparent UART bridge - the same thing a USB to serial board achieves.Setting up the Bus Pirate:Connect the Bus Pirate to the Arduino Pro Mini as shown (or other, I have only tested the Arduino Pro Mini, thus far):*NOTE* - some Bus Pirate boards (EG, from "SparkFun") have the PCB side plastic shroud back to front - ignore this - the pinouts are still the same, it's just that for some odd reason, someone decided to place the keyed connector BACK TO FRONT on some variants of the Bus Pirate, notably my "SparkFun" model.Connnect to the Bus Pirate with a terminal (I use "Tera Term") at 115200 baud.Put the Bus Pirate in UART mode and speed 57600 baud. Bus Pirate menu steps below, in the code block:Code:HiZ>m1. HiZ2. 1-WIRE3. UART4. I2C5. SPI6. 2WIRE7. 3WIRE8. LCD9. DIOx. exit(without change)(1)>3Set serial port speed: (bps)1. 3002. 12003. 24004. 48005. 96006. 192007. 384008. 576009. 11520010. BRG raw value(1)>8Data bits and parity:1. 8, NONE *default2. 8, EVEN3. 8, ODD4. 9, NONE(1)>Stop bits:1. 1 *default2. 2(1)>Receive polarity:1. Idle 1 *default2. Idle 0(1)>Select output type:1. Open drain (H=Hi-Z, L=GND)2. Normal (H=3.3V, L=GND)(1)>2ReadyUART>Activate the power supplyUART>WPower supplies ONUART>vPinstates:1.(BR) 2.(RD) 3.(OR) 4.(YW) 5.(GN) 6.(BL) 7.(PU) 8.(GR) 9.(WT) 0.(Blk)GND 3.3V 5.0V ADC VPU AUX - TxD - RxDP P P I I I I I I IGND 3.31V 5.18V 0.00V 0.00V L H H L LUART>Set the connection between the computer and the BusPirate at 57600:UART>bSet serial port speed: (bps)1. 3002. 12003. 24004. 48005. 96006. 192007. 384008. 576009. 11520010. BRG raw value(9)>8Adjust your terminalSpace to continueChange the port speed to 57600 on the computer.Now put the BusPirate in transparent bridge.UART>(3)UART bridgeReset to exitAre you sure? yNow close your terminal and open Arduino IDE, and set the COM port to the COM port of the Bus Pirate (Windows should have automatically installed the Bus Pirate FTDI drivers already.)If you get stuck, try these links:http://wiki.flav.com/wiki/Arduino_Bus_Piratehttps://haquesprojects.wordpress.com/embedded-device-hacking/using-a-bus-pirate-as-a-usb-ttl-serial-converter
Texas Instruments OMAP LCDK DSP board - Page 1
Forum section: electronics / general

author: sagnikbasu
author_rank: Contributor
timestamp: February 04, 2017, 03:51:07 pm
content: Is there any good online tutorial for Texas Instruments OMAP LCDK DSP board ? Can I use it to take input from IMU sensors like MPU 6050 and use it for embedded system projects ?
Cypress PSOC Breakout board Layout - Page 1
Forum section: electronics / general

author: iampoor
author_rank: Frequent Contributor
timestamp: January 15, 2017, 12:56:34 pm
content: HelloThis is my first time making a "breakout board" for a SMD Microcontroller. I am designing it to work with all 100pin LQFP Psoc5 Microcontrollers. I want to breakout all of the IO pins on 40pin headers, the power connections are on a separate 1x8 header. I am basing this off of the Sparkfun eagle models, and my schematic is pretty messy right now. As this is my first time doing a layout for this type of board, I have a few questions.How should I route power and ground for each IO bank? Is a power and gnd pin for each bank necessary?Will my current track spacing cause signal integrity or crosstalk issues? I am not expecting any IO speeds past 8MHZ with the exception of the USB pins. Would it be advantageous to space the traces out and put some ground fill between each pin?I am also currently not sure about how I should route the USB connection. I know how it is setup right now, breaking up the ground plane is FAR from ideal. Would routing these lines in parallel and grouping them on the .1pin header with the other IO's make more sense?Also, some of the PSOC IC's have a 20 bit ADC. What precautions should I take to not spoil the analog performance? Would a guard trace with VIAs to the ground plane around these IO lines be the right way? I have highlighted the ADC traces.If you see anything else I could do better, please let me know. I am not a newbie to analog layouts, but this is my first "serious" digital project. Thanks!

author: ebclr
author_rank: Super Contributor
timestamp: February 07, 2017, 08:28:15 pm
content: Just is case you realise isn't worth reinvent the wellhttp://www.cypress.com/documentation/development-kitsboards/cy8ckit-059-psoc-5lp-prototyping-kit-onboard-programmer-and

author: timb
author_rank: Super Contributor
timestamp: February 07, 2017, 09:08:33 pm
content: Quote from: iampoor on January 15, 2017, 12:56:34 pmFunny, I'm actually 90% done laying out a PSoC 5LP 100 QFP breakout board designed for analog performance.Take a look at AN57821 for Cypress recommendations on mixed signal PSoC layout.Also, I'd move your 100nF VDDIO decoupling caps to the top layer. Same with the 12pF crystal oscillator caps (they shouldn't go through vias as it adds inductance and capacitance).You're not going to get 20-bit analog performance with the layout you've got now, so I wouldn't bother trying, honestly. You really need a 4 layer board and dedicated VDDA supply with separate ground planes and shielded connectors (instead of 2.54mm headers) to achieve that.Still, not bad at all for a basic little breakout board (though I'm not sure what it offers besides a few more pins compared to Cyrpress' $10 PSoC 5LP breakout).